Re: -type error
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Dec 2006 17:48:48 GMT
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.
.
- Follow-Ups:
- Re: -type error
- From: Bryan Oakley
- Re: -type error
- References:
- -type error
- From: Norman Elliott
- -type error
- Prev by Date: Re: -type error
- Next by Date: Re: -type error
- Previous by thread: Re: -type error
- Next by thread: Re: -type error
- Index(es):