Re: -type error



Norman Elliott wrote:
Hi,
I have just tried writing my first tck/tk program and get some errors.

I am running Mandriva 2006 with tcl-8.4.11-1mdk and tk-8.4.11-1mdk installed.
the program code is :

#!/usr/bin/wish
# I have also tried #!/usr/bin/env wish for the first line
proc launchbrowser {} { exec firefox &; }
proc launchemail {} { exec thunderbird &; }
frame .app -borderwidth 10;
.app configure -background lightblue;
pack .app;
button .app.browser -text "Firefox" -command launchbrowser;
button .app.email -text "Thunderbird" -command launchemail;
pack .app.browser .app.email;

and the errors are :
unknown option "-type"

Did you by any chance name your tcl file "menu.tcl"?

If so, rename it to something else. The reason is somewhat obscur; I'll attempt to find an explanation somewhere. Someone stumbles over this once every couple years or so.
.


Quantcast