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

tk_messageBox "invalid command name" on v8.3.4

Status
Not open for further replies.

jimmyg08

Programmer
Jul 10, 2002
3
0
0
US
hi,
i am having trouble invoking tk_messageBox, among other built-in tk commands.. i am using tcl/tk 8.3.4 running on sgi irix 6.5.

i tried rebuilding tcl/tk with the standard configure flags (--prefix, --with-tcl=,etc) to no avail. I am assuming i am missing some other libraries that i need.. but not sure what?? i'm at aloss as to what to do..

thanx in advance!!


stack trace:

invalid command name "tk_messageBox"
while executing
"error "invalid command name \"$name\"""
invoked from within
"if {!$tcl_interactive || ([info level] > 2) || [info script] != ""} {
error "invalid command name \"$name\""
}"
(procedure "tclx_unknown2" line 17)
invoked from within
"tclx_unknown2 $args"
invoked from within
"uplevel 1 [tclx_unknown2 $args]..."
invoked from within
"return [uplevel 1 [tclx_unknown2 $args]]..."
(procedure "unknown" line 8)
invoked from within
"tk_messageBox -parent . -title "About md..." -type ok -icon info -message
"
invoked from within
"set result [tk_messageBox -parent . -title "About md..." -type ok -icon info -message
..."
(procedure "aboutMsg" line 2)
invoked from within
"aboutMsg"
invoked from within
".menubar.help.menu invoke active"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke active]"
invoked from within
"if {[$w type active] == "cascade"} {
$w postcascade active
set menu [$w entrycget active -menu]
tkMenuFirstEntry $menu
} elseif {[$w type activ ..."
(procedure "tkMenuInvoke" line 2)
invoked from within
"tkMenuInvoke .menubar.help.menu"
(command bound to event)
 
Just to be sure: you don't use a slave interpreter? (this doesn't seem)
Because on my Windows box a slave interpreter doesn't know about Tk until loading it.

Good luck!

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top