Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 36c00076ae92528d667b27d91e02e95a89134908
Ticket: 490407ffffffffffffffffffffffffffffffffff
error when naming a script "button"
User & Date: smithc on 2001-12-07 21:13:57
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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
    
  4. foundin changed to: "obsolete: 8.4a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "smithc"
  9. subsystem changed to: "None"
  10. title changed to: "error when naming a script "button""
  11. type changed to: "Bug"