Best GUI for Python

Ben Finney ben+python at benfinney.id.au
Sun Apr 26 16:26:41 EDT 2015


Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:

> Tkinter is easier to use, as it is standard with Python. So long as
> you have Tk/Tcl installed on your computer, Tkinter should work fine.
>
> However, Tkinter probably looks a bit more old fashioned.

It doesn't have to. By using the newer ‘tkinter.ttk’ library
<URL:https://docs.python.org/3/library/tkinter.ttk.html>, the GUI will
use native look-and-feel widgets.

Why not by default? To preserve backward compatibility. There are some
old GUI programs using basic Tkinter, and breaking the GUI is not a good
thing to do to programs which are otherwise working fine. So you only
get the newer widgets by asking for them explicitly.

-- 
 \        “Members of the general public commonly find copyright rules |
  `\        implausible, and simply disbelieve them.” —Jessica Litman, |
_o__)                                              _Digital Copyright_ |
Ben Finney




More information about the Python-list mailing list