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

how to run .tk file

Status
Not open for further replies.

stewang

Programmer
Aug 21, 2003
77
NZ
Hello all:
I got a problem, when I run my code. I want to add a frame on main window, and a button on frame, but I can not see then when I run my code, I just see a window.
I run my code with the command "wish test.tk"
Could anyone help me? please.

My code as follow;

frame .frame1 -background blue
button .frame1.button1 -text "I am testing" -background red
pack frame
 
Hello:
I known how to do now. thanks for you pay attention to here.

frame .frame1 -background blue
button .frame1.button1 -text "I am testing" -background red

pack .frame.button1 -padx 10 -pady 10
pack .frame1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top