[wxruby-users] WX::Dialog won't close
Glen Holcomb
damnbigman at gmail.com
Wed Oct 8 09:48:16 EDT 2008
On Fri, Oct 3, 2008 at 11:39 AM, Glen Holcomb <damnbigman at gmail.com> wrote:
> 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)
>
It would appear that the only instruction that doesn't run at the end of
on_okay is close, exit works fine. This kind of blows, I suppose I'll have
to start another instance of the app and exit after the populate finishes,
not the cleanest solution.
--
"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/20081008/737f53a6/attachment.html>
More information about the wxruby-users
mailing list