[wxruby-users] WX::Dialog won't close

Glen Holcomb damnbigman at gmail.com
Fri Oct 3 13:39:46 EDT 2008


On Thu, Oct 2, 2008 at 2:45 PM, Glen Holcomb <damnbigman at gmail.com> wrote:

> If it is modal I'm not intending it to be but I'll check.
>
>
> On Thu, Oct 2, 2008 at 2:42 PM, Alex Fenton <alex at pressure.to> wrote:
>
>> Glen Holcomb wrote:
>>
>>> I have an interesting problem.  I have a dialog which refuses to go away
>>> once it has finished it's associated code.
>>>
>>> Here is the code:
>>>
>>>  ...
>>
>>> After filling out the proper information and clicking on okay the data is
>>> populated however when it finishes the dialog hangs around.  Furthermore it
>>> won't close when you click on Cancel or the Window close widget (the X in my
>>> case).  The log line executes just fine, the dialog just refuses to close.
>>>
>>
>> I haven't tried out your code, but maybe you need to call end_modal, if
>> you're calling show_modal to start the dialog?
>>
>> alex
>> _______________________________________________
>> wxruby-users mailing list
>> wxruby-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/wxruby-users
>>
>
>
>
> --
> "Hey brother Christian with your high and mighty errand, Your actions speak
> so loud, I can't hear a word you're saying."
>
> -Greg Graffin (Bad Religion)
>

Well end_modal doesn't do anything either.  Oddly before clicking on the
"okay" button the "cancel" button works, however after the on_okay event is
processed the "cancel" button does nothing.

-- 
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can't hear a word you're saying."

-Greg Graffin (Bad Religion)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20081003/7cace179/attachment.html>


More information about the wxruby-users mailing list