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.

Mick




On Thu, Dec 9, 2010 at 3:46 PM,  <pyt...@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@python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to