error when naming a script "button"
Closed / Invalid490407ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-12-07 21:13:57
Save the following line in a file named "button":
pack [button .b -text FOO]
Then invoke wish, passing to it this file:
wish8.4 button
Move the cursor into the wish toplevel, and the
following error message is given:
Error: unknown option "-state".
This was originally written against the [incr Tcl]
project, ticket #227899 (you can look at
https://sourceforge.net/tracker/index.php?func=detail&aid=227899&group_id=13244&atid=383687
for more information), but I've determined that this is
not an itcl bug. I've done a bit of investigation but
can't find the source of the problem other than the
obvious, that the following binding from button.tcl is
being tied to "." in addition to the button:
bind Button <Enter> {
tk::ButtonEnter %W
}
Note that the same behavior occurs if the script is
named "checkbutton" or "radiobutton".
-chad
dgpplain2001-12-10 22:24:37
Logged In: YES user_id=80530 This is a documented feature of wish. See wish(1): APPLICATION NAME AND CLASS The name of the application, which is used for purposes such as send commands, is taken from the -name option, if it is specified; otherwise it is taken from fileName, if it is specified, or from the command name by which wish was invoked. ... The class of the application, which is used for purposes such as specifying options with a RESOURCE_MANAGER property or .Xdefaults file, is the same as its name except that the first letter is capitalized. So, this report is really seeking to change a feature of wish (Tk). Register that as a Feature Request with the tktoolkit project.
smithcplain2001-12-11 02:50:36
Logged In: YES user_id=103634 Aaahhh.. Thanks for the clarification, Don. No, I don't want to change wish so we'll just consider this ticket null and void.
Log in (anonymous is fine) to add a comment.