Tkinter: How to remove stacking order of a widget in grid manager
Bernie
bernie at pacific.net.hk
Tue Feb 6 16:48:29 EST 2001
Hi,
I have an application which requires reordering the widgets during
runtime. I am using the grid manager and found two functions
grid_remove()
and grid_forget(). I thought grid_remove() should does the job, it
doesn't,
neither do grid_forget().
How can that be done?
Thanks in advance!
Below is the code fragment:
# remove widget from Grid Display manager
for w in widget_list
w.grid_remove()
# re-ordering the widget
widget_list.sort( mySort) # mySort() is not listed
# display widgets in new orders
col = range(5)
row = 0
for w in widget_list:
for i in col:
w.grid( column = i, row = row)
row = row + 1
More information about the Python-list
mailing list