Beginner Tkinter Q.: how to re-pack a frame in place?

J B Bell bogus at eschatek.com
Mon Dec 31 15:49:02 EST 2001


Hello all.

I'm new to Tkinter, but not Python.  I've written a utility dice-roller 
for an RPG and would like to GUIfy it.  My main snag right now is that I 
haven't been able to find docs on how one does a re-draw in place.  That 
is, at the simplest level, let's say I have a frame with several text 
input widgets packed into it--I'd like to be able to edit one of the 
input boxes, then hit a "re-sort" button and have the fram they're in 
re-pack them in some kind of sorted order.  So if I had widgets saying, 
e.g., "1", "2", "3", and I changed the "2" to a "5" and hit "Re-pack", 
the widget order would change, with underlying variables preserved 
appropriately.

Any sample code somebody could point me at?  Please cc: me by changing 
"bogus" in the address to "cipher"; I don't read this ng much.

--JB




More information about the Python-list mailing list