[Tkinter-discuss] importing tk.W?

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 11 05:48:29 CET 2014


memilanuk wrote:
> My question is this:  How / why does this make any sense, that an 
> attribute (W) to an option (sticky=) would be imported at the same level 
> as widgets themselves?

Tkinter is a *very* old library, written before the best
practices for this kind of thing were sorted out. If it
were being designed today, things would probably have
been done differently.

Anyway, there's no great problem if you avoid * imports
and prefix everything with tk.

-- 
Greg


More information about the Tkinter-discuss mailing list