Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/wish
- proc hide { } {
- pack forget .f
- }
- proc show { } {
- #frame .f (if you remove these comments the frame and the labels will be giving errors. they are already defined)
- #label .l -text "lab1"
- #label .l2 -text "lab2"
- pack .f
- pack .l -in .f
- pack .l2 -in .f
- }
- button .bh -text "hide" -command "hide"
- button .bs -text "show" -command "show"
- frame .f
- label .l -text "lab1"
- label .l2 -text "lab2"
- pack .bh .bs .f
- pack .l -in .f
- pack .l2 -in .f
Add Comment
Please, Sign In to add comment