Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the "native" GUI look with Tkinter?

By default Tkinter still uses the old Windows 2000-style widgets (random example):

windows 2000 run dialog

but I want it to use the Windows XP/Vista/7-style widgets instead:

windows xp run dialog

How can I do this? I would prefer to use the latest style version, so Windows 7 > Vista > XP > 2000.

like image 694
orlp Avatar asked Sep 12 '11 08:09

orlp


2 Answers

On Windows, use tkinter.ttk to get the the themed version of Tk.

like image 91
David Heffernan Avatar answered Nov 18 '22 22:11

David Heffernan


The ttk themed widgets are what you are looking for. Be sure to use the 'vista' theme to get native appearance on Vista/Win7.

like image 23
Kevin Walzer Avatar answered Nov 18 '22 22:11

Kevin Walzer