nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Tkinter - visible or hidden?

Von: Thomas Lehmann (t.lehmann@rtsgroup.net) [Profil]
Datum: 10.09.2009 12:53
Message-ID: <ec71ade9-d001-4cfe-9e7f-22e53b0381ca@v36g2000yqv.googlegroups.com>
Newsgroup: de.comp.lang.python
Hi!

a) When shrinking the height of that window the last
button gets hidden (repeatable).
How do I find out that a widget is getting hidden?
note: the layout manager still has the widget

b) How do find that a given widget is hidden?
note: the layout manager still has the widget

c) Increasing the height. How can I found out that
there is enough space for an additional button?

APPENDIX:

import tkinter as tk

root   = tk.Tk()

for k in range(10):
button = tk.Button(root, text="%s" % (k))
button.pack(expand=tk.NO, fill=tk.X, side=tk.TOP)

root.mainloop()

[ Auf dieses Posting antworten ]