How to unpack all sub-objects of a frame with one single command?
hansyin_at_gmail.com
Date: 12/31/04
- Next message: Jeff Godfrey: "Re: How to unpack all sub-objects of a frame with one single command?"
- Previous message: Bryan Oakley: "Re: Select single item in mclistbox"
- Next in thread: Jeff Godfrey: "Re: How to unpack all sub-objects of a frame with one single command?"
- Reply: Jeff Godfrey: "Re: How to unpack all sub-objects of a frame with one single command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Dec 2004 20:04:19 -0800
I wrote below script:
frame .t
button .t.1 -text "aaa"
button .t.2 -text "bbb"
button .t.3 -text "ccc"
pack .t.1 .t.2 .t.3 -side top
pack .t -side top
sleep 2
#after some processes
......
#hope to pack only .t.1 .t.2
pack forget .t #forget all button
pack .t.1 .t.2 -side top
pack .t -side top
#found that .t.3 still be packed. that's not what i wanted.
I knew that I can use "pack forget .t.3" to unpack .t.3 completely,
but I don't like to do it like this, because that it's very hard to
get the exact button value to "forget" in my script, it's easy to know
which buttons should be packed, So I hope that I can use a single
command to unpack a parent frame and all objects in the frame, then
just pack new objects clearly.
Is there an easy way to do this?
Any response will be very appreciated! thanks.
- Next message: Jeff Godfrey: "Re: How to unpack all sub-objects of a frame with one single command?"
- Previous message: Bryan Oakley: "Re: Select single item in mclistbox"
- Next in thread: Jeff Godfrey: "Re: How to unpack all sub-objects of a frame with one single command?"
- Reply: Jeff Godfrey: "Re: How to unpack all sub-objects of a frame with one single command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]