alan.gauld at blueyonder.co.uk
Thu Apr 29 17:17:46 EDT 2004
> can i do something like that:
> I "define" several widgets:
> label = Label(root, text="text")
This creates a widget and calls it 'label'
> label = Label(root, text="text2")
This creates a second widget and calls it 'label' At this
point we no longer have a reference to the first widget
(except by interrogating the root object for its children)
This pushes the currently referenced widget onto the GUI.
> right now, it shows only second widget.
Correct, because that's what we told 'label' to point to
most recently. Python does exactly what you ask it to do
and no more...
More information about the Tutor