Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to close a window

75 views
Skip to first unread message

Lakshman C

unread,
Jan 2, 2006, 3:18:00 AM1/2/06
to
How is it possible to close a window which contains a button called
NEXT-WINDOW and on clicking this button I should be able to close this
window without deleting it and open another window. In the next window
there is one another button called PREVIOUS-WINDOW and on clicking this
button this window should be closed and the previous window should be
opened.

Pa_McClamrock

unread,
Jan 2, 2006, 5:00:42 AM1/2/06
to
toplevel .next
toplevel .prev
grid [button .next.butt -text "NEXT-WINDOW" -command {
wm deiconify .prev ; wm iconify .next
}]
grid [button .prev.butt -text "PREVIOUS-WINDOW" -command {
wm deiconify .next ; wm iconify .prev
}]
wm iconify .prev

Ashish Sudhakar

unread,
Jan 3, 2006, 6:19:32 AM1/3/06
to
Try wm withdraw .

http://wiki.tcl.tk/3175

0 new messages