How do you use the widgets in tkinter.ttk if you want to "import tkinter as tk"?

John Salerno johnjsal at gmail.com
Sat Mar 3 06:06:02 CET 2012


> I suppose the 'advantage' of this is that it will replace tk widgets 
> with equivalent ttk widgets, if they exist and have the same name. I 
> believe one has to program them differently, however, so the replacement 
> cannot be transparent and one mush know anyway what gets replaced and 
> what not.

Grr, sounds like a pain if I want to use the new widgets. Does this cause conflict with someone who isn't running 8.5, or will they still see the older widgets as normal?

I'm tempted just to go back to wxPython. Two sets of widgets in Tkinter is a little annoying.



More information about the Python-list mailing list