harryo / zipworld.com.au wrote:
>I'm trying to write a confirmation dialog in Ruby/Tk.
>
>I've been able to catch the window destroy event.  However, in the
>case where I decide I don't want to exit, how do I stop the event from
>propogating and hence causing the window to close?
>
>Of course, this could really be a Tk issue, but I found some Python/Tk
>code that says to have the handler return "break", which I've tried
>with no success, so I'm guessing there may be something language- or
>implementation- dependent about this.

According to my Perl/Tk book, to halt the 
processing of any and all callbacks bound to a 
widget/event combination, you can use Tk::break 
instead of the milder return.

There appears to be a method named callback_break 
(on the same level as the messageBox and 
chooseColor methods). That might be what you need 
to call. I'm just guessing, here...

Kevin