laphroaig% ./tcl_ui -display tahma:0 master
invalid command name: "button"
while executing
"button .new -padx 10 -pady 5 -text New -command new_conf"
(procedure "main_buttons" line 2)
invoked from within
"main_buttons"
invoked from within
"if {$master} {
main_buttons
}"
(file "ui.tcl" line 138)
invoked from within
"source ui.tcl"
zsh: 5438 exit 1 ./tcl_ui -display tahma:0 master
laphroaig%
I am not very familiar with Tcl & Tk (yet) so I have no clue where to start
looking for the problem. Isn't button a command that should always be
available? Or should I make some obscure call that enables me to use
button, listbox, scrollbar, etc..
--
inet: Sami....@hut.fi, X.400: C=fi;ADMD=fumail;O=hut;S=Tikka;G=Sami
HUT/IIA; I don't speak for my employer. Finger me for my PGP key.
You still need to do everything Wish's Tcl_AppInit does, such as:
main = Tk_MainWindow(interp);
...and...
if (Tk_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
--
-- Email in...@NeoSoft.com for info on getting interactive Internet access.
"The road untravelled is the road that can be endlessly speculated about."