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

Michael O'Donnell michael.odonnell at uam.es
Thu Dec 9 18:18:10 CET 2010

Look at:


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


-- 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.


On Thu, Dec 9, 2010 at 3:46 PM,  <python at bdurham.com> wrote:
> Is there a widget method that returns whether a widget is pack()-ed or
> unpacked?
> The same question applies to widget's placed with the grid() or place()
> layout managers.
> Thank you,
> Malcolm
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss

More information about the Tkinter-discuss mailing list