[Tkinter-discuss] How does Python's new ttk (Title) support work under Linux Qt and GTk?

python at bdurham.com python at bdurham.com
Fri Oct 29 18:31:49 CEST 2010


Any comments on the concerns about ttk portability to Qt and GTk 
windowing systems?

The following is from a recent thread on the python-list mailing list.

> Tkinter is built-in and available on Windows, Mac, and Linux. If
you're using Python 2.7 or 3.1 you can take advantage of Tkinter's ttk
(Tile) support for platform native user interfaces.

Reponse: 

You get a native UI using the correct theme even on Linux under Qt or 
GTk?

>From what I've read of ttk, it still isn't using native UI elements.
It just has a bunch of its own "themes" that look mostly/sort-of like
native UI elements. Right?

Under Linux does ttk automagically pick the theme that looks most like
the current Qt or Gtk theme?

On systems where both are installed, how does ttk decide whether to
look like Qt or Gtk?

In addition to looking like native UI elements, does ttk also change
UI behaviors to match native UI elements?  For example will it
automatically use emacs key-bindings for text-entry editing if that's
enabled in my Gtk configuration?


More information about the Tkinter-discuss mailing list