[Tkinter-discuss] How to determine if a widget is pack()-ed or unpacked via pack_forget()?

python at bdurham.com python at bdurham.com
Fri Dec 10 15:43:03 CET 2010


Mick,

Perfect - that's just what I was looking for.

Malcolm

<snipped>
From: "Michael O'Donnell" <michael.odonnell at uam.es>

Look at:

w.winfo_ismapped()

...Note that if a widget IS packed, but the parent (or some ancestor)
is not, this will return False.

w.winfo_manager()

-- will return "" if the widget is not packed/gridded etc.,
disregarding whether the parent is not packed.
Otherwise returns info on how it is placed.
</snipped>


More information about the Tkinter-discuss mailing list