Tk Library Source Code

View Ticket
Login
Ticket UUID: 7bb539fa97259ede350f042337eff27aae0591c8
Title: ::crosshair::off doesnt work properly
Type: Bug Version: crosshair 1.2
Submitter: anonymous Created on: 2013-06-18 17:45:15
Subsystem: tklib :: crosshair Assigned To: aku
Priority: 7 High Severity: Important
Status: Closed Last Modified: 2013-07-04 17:08:11
Resolution: Fixed Closed By: aku
    Closed on: 2013-07-04 17:08:11
Description:
In routine ::crosshair::off

Replace "Hide" by "Hide $w"

--> The command "Hide" needs an argument

Replace "set pos [lsearch -exact $bindtags Configure]" by 
        "set pos [lsearch -exact $bindtags Crosshair]"


--> Bindtag "Configure" doesnt exist


Replace "eval [list bindtags $w] [lreplace $bindtags $pos $pos]" by
        "bindtags $w [lreplace $bindtags $pos $pos]"

--> It is more robust on list of tags such as "graphics-.main.mid.plot0.mid.graph0.c .main.mid.plot0.mid.graph0.c Canvas .main all" where ".main.mid.plot0.mid.graph0.c" is the name of the canvas.
User Comments: aku added on 2013-07-04 17:08:11:
Fixed with revision [8995efe829].