Implicit initialization is EVIL!

Chris Angelico rosuav at gmail.com
Mon Jul 4 04:44:48 EDT 2011


On Mon, Jul 4, 2011 at 6:33 PM, Gregory Ewing
<greg.ewing at canterbury.ac.nz> wrote:
> rantingrick wrote:
>
>> Unlike most GUI libraries the Tkinter developers thought is would
>> "just wonderful" if the root GUI window just sprang into existence if
>> the programmer "somehow" forgot to create one.
>
> IMO the real problem here is the existence of a privileged
> "root" window at all. No GUI platform I know of has any
> such concept (except for a "desktop" window that represents
> the whole screen, which is not the same thing). All top-level
> windows should have equal status.

I don't know Tkinter, but from the look of the example code, he's
creating a Label that's not attached to a window, and then packing it
into nothing. The toolkit kindly creates him a window. Is that the
"root GUI window" that he means? A basic top-level window?

Chris Angelico



More information about the Python-list mailing list