Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Program with Tk::TOTD not exiting properly

by Kirsle (Pilgrim)
on Nov 01, 2013 at 21:09 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1060842]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-16 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found