Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Deleting a popup menu crashes wish

Closed / Invalid637648ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-11-13 08:59:15
The following code causes a serious crash of 
wish84.exe on Windows XP,  if you click the right 
mouse button on the canvas.
-------------------------------------
pack [canvas .c]
bind .c <ButtonPress-3> {
    set w .popupmenu
    catch {destroy $w}
    menu $w -tearoff 0
    $w add command -label TEST
    $w post %X %Y
}
bind .c <ButtonRelease-3> {
    catch {destroy .popupmenu}
}
------------------------------------
This script is okay on Unix.
dkfplain2002-11-13 16:14:33
Logged In: YES 
user_id=79902

This is (probably) a Tk bug, not a Tcl bug.  Resubmitting to
tktoolkit project.
Log in (anonymous is fine) to add a comment.