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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new tk window 1

Status
Not open for further replies.

MrE4U

Programmer
Mar 29, 2003
11
0
0
US
How would open a new tk window from a existing tk window by pressing a button?

Thank You
 
the widget name for a new window is "toplevel". The syntax is something like:
toplevel .<name>

So you would assign to the -command option of the button the toplevel creation:
button .<whatever> -text <whatever> -command {toplevel .<name>}

Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top