Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tk multiple window

Status
Not open for further replies.

facto

ISP
Nov 22, 2009
1
CO
I need to bring up another window after user clicks on the button. Supposed that I have a requirement that the new window replaces the previous window. The new window should allow user to go back to the previous window. How do I this without using dialog window.

Thanks,
 
You can create, show and hide toplevel windows at your will.

Creating a toplevel window and adding a button:
Code:
toplevel .top
button .top.exit -text quit -command exit
Hidding a toplevel:
You can either
- hide the toplevel from the screen (so you are able to show it again)
- or destroy the toplevel (that you have no more need).
Hidding and showing a toplevel:
Code:
wm withdraw .top
...
Code:
wm deiconify .top

Destroying a toplevel (and all its widgets):
Code:
destroy .top

Good luck

ulis
 
If I'm correctly reading in between the lines that you're building some sort of "wizard" in Tcl, you might want to check out Bryan Oakley's tkwizard extension, available at - Ken Jones, President, ken@avia-training.com
Avia Training and Consulting, 866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top