Tk Library Source Code

View Ticket
Login
Ticket UUID: 1448424
Title: Balloon help not removed when window closes.
Type: Bug Version: None
Submitter: nobody Created on: 2006-03-12 18:47:54
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-03-24 06:35:34
Resolution: None Closed By: dev_null42a
    Closed on: 2006-03-23 23:35:34
Description:
I think DynamicHelp::_unset_help is missing a call to
"destroy $_top" (and "variable _top".
As the following code can show, the balloon with the
help message is not removed if Alt-d is used to destroy
the widget to which the help is bound. Just hover the
mouse over the Entry so that the balloon appears and
then hit Alt-d.

[email protected]

package require BWidget
Entry .e -helptext "This is helptext"
button .b -text "Destroy Entry" -underline 0 -command
{destroy .e}
pack .e .b
bind . <Alt-d> {destroy .e}
User Comments: dev_null42a added on 2006-03-24 06:35:34:
Logged In: YES 
user_id=1381097

Error recreated using your test code.  Correction applied
via your suggestion.  Thanks.