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!

Dialog problem 1

Status
Not open for further replies.

stewang

Programmer
Aug 21, 2003
77
NZ
Hello:
Would anyone help me to find out why it report to me wrong argument, after i run my code.
Code:
button .button1 -text "Generic dialog"           -command { tk_dialog .dialog "A modal dialog" 
          "This dialog has grabbed input focus"  ""
           1 "Cancel" "Ok"} 
pack .button1
 
you need line continuations:

button .button1 -text "Generic dialog" -command { tk_dialog .dialog "A modal dialog" "This dialog has grabbed input focus" "" 1 "Cancel" "Ok"}
This should work.


Bob Rashkin
rrashkin@csc.com
 
Hi Bong:
Thanks for your help, my code can work now.

rgds
stewang
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top