Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Program with Tk::TOTD not exiting properly

by Kirsle (Pilgrim)
on Nov 01, 2013 at 21:09 UTC ( #1060842=note: print w/ replies, xml ) Need Help??


in reply to Program with Tk::TOTD not exiting properly

Confirmed bug.

The problem is reproduced when you use the in-dialog "Close" button to dismiss the dialog. Clicking your window manager's "X" button doesn't reproduce the problem.

The root cause is that the "Close" button calls destroy() on the dialog, and the underlying DialogBox doesn't like this, because it calls WaitVariable and waits forever. Instead, I set the "selected_button" attribute of the DialogBox, which causes the DialogBox to close itself gracefully.

See: 8fa6e213.

I've uploaded Tk::TOTD 0.3 to CPAN that fixes this issue.


Comment on Re: Program with Tk::TOTD not exiting properly

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1060842]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (15)
As of 2014-08-01 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (37 votes), past polls