Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Can't rename tk_optionMenu until it's been ran

Closed / Invalid1434635fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2006-02-19 15:24:19
OS Platform and version: Linux 2.6
Tcl version: 8.4.11

(Note: I wasn't sure whether this belonged to the tcl
or the tk tracker, but seeing as it's rename involved I
guessed tcl...)

Problem: Rename does not seem to recognise
tk_optionMenu until it's (tk_optionMenu, not rename)
been ran once. If you try and rename tk_optionMenu
before you've ran it, tcl says: "can't rename
"tk_optionMenu": command doesn't exist"

Wish output:
% rename tk_optionMenu optmenu
can't rename "tk_optionMenu": command doesn't exist
% tk_optionMenu .w f g h
.w.menu
% rename tk_optionMenu optmenu
%
dkfplain2006-02-20 01:57:17
Logged In: YES 
user_id=79902

The issue is simply that tk_optionMenu is autoloaded. It's
also a completely trivial script in Tk's script library!

No Tcl issue here in any case.
Log in (anonymous is fine) to add a comment.