Re: Re: aui based programm terminates with assertion error

Eric Fahlgren <[email protected]> Tue, 22 Jan 2019 11:18:38 -0800
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <CAP2Qz+V9pawOdWr1Rt=0__LcMLa1G83x8_JD7E8duMUzrH1mTQ@mail.gmail.com>
I was going to say, I've been using it for a couple years. :)

   def Destroy(self):
        """ If anyone has created a MainWindow, then we must make absolutely
            sure that the AUIManager is disconnected before the application
            terminates, so call UnInit here and in an exit handler.
        """
        if self.aui is None:
            return 0
        self.Closing()  # Callback to user actions.
        self.aui.UnInit()
        return super().Destroy()


On Tue, Jan 22, 2019 at 9:53 AM Robin Dunn <[email protected]> wrote:

> On Tuesday, January 22, 2019 at 9:51:49 AM UTC-8, Robin Dunn wrote:
>>
>> On Tuesday, January 22, 2019 at 8:48:08 AM UTC-8, Torsten wrote:
>>>
>>> AuiManager has a UnInit method which should be called before a managed
>>> frame or window is destroyed.
>>>
>>> See:
>>>
>>> https://docs.wxpython.org/wx.lib.agw.aui.framemanager.AuiManager.html#wx.lib.agw.aui.framemanager.AuiManager.UnInit
>>>
>>>
>>>
>>
>> Yep, unfortunately the wx.aui implementation doesn't have that method.
>> Although now that I think about it I could probably graft it on...
>>
>
>
> Oops, it looks like it is there now. :-)
>
> --
> Robin
>
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.