AuiToolBar causing Python crashes when my program exits

Hi,

After I added an AuiToolbar, I've since noticed that whenever I close
my program, Python seems to crash.

Is there a certain way I'm supposed to be uninitializing the toolbar
other than the AuiManager.UnInit() method?

Below is where I initialize the toolbar, and my exit routine.

def __init_toolbar__(self):
        self.toolbar = aui.AuiToolBar(self)
        self.toolbar.AddTool(1,'',wx.Image('icons/
fileopen.png',wx.BITMAP_TYPE_PNG).ConvertToBitmap())
        self.toolbar.AddTool(2,'',wx.Image('icons/
filesave.png',wx.BITMAP_TYPE_PNG).ConvertToBitmap())
        self.toolbar.AddTool(3,'',wx.Image('icons/
filesaveas.png',wx.BITMAP_TYPE_PNG).ConvertToBitmap())
        self.toolbar.AddTool(4,'',wx.Image('icons/
player_play.png',wx.BITMAP_TYPE_PNG).ConvertToBitmap())
        self.toolbar.AddTool(5,'',wx.Image('icons/
agt_stop.png',wx.BITMAP_TYPE_PNG).ConvertToBitmap())
        self.toolbar.AddTool(6,'',wx.Image('icons/
filter.png',wx.BITMAP_TYPE_PNG).ConvertToBitmap())
        self.toolbar.AddTool(7,'',wx.Image('icons/
info.png',wx.BITMAP_TYPE_PNG).ConvertToBitmap())
        self._mgr.AddPane(self.toolbar, aui.AuiPaneInfo().Name
("Toolbar").Caption('').ToolbarPane().Top())

def quit(self, event):
        # deinitialize the frame manager
        self._mgr.UnInit()
        # delete the frame
        print 'Quit'
        self.Destroy()

Thanks for the help

wx.aui or wx.lib.agw.aui?

···

On 1/14/10 11:32 AM, Dustin Hice wrote:

Hi,

After I added an AuiToolbar, I've since noticed that whenever I close
my program, Python seems to crash.

--
Robin Dunn
Software Craftsman

wx.aui

···

On Jan 14, 2:23 pm, Robin Dunn <ro...@alldunn.com> wrote:

On 1/14/10 11:32 AM, Dustin Hice wrote:

> Hi,

> After I added an AuiToolbar, I've since noticed that whenever I close
> my program, Python seems to crash.

wx.aui or wx.lib.agw.aui?

--
Robin Dunn
Software Craftsmanhttp://wxPython.org

Should I be using wx.lib.agw.aui instead?

···

On Jan 14, 2:23 pm, Dustin Hice <hicedus...@gmail.com> wrote:

wx.aui

On Jan 14, 2:23 pm, Robin Dunn <ro...@alldunn.com> wrote:

> On 1/14/10 11:32 AM, Dustin Hice wrote:

> > Hi,

> > After I added an AuiToolbar, I've since noticed that whenever I close
> > my program, Python seems to crash.

> wx.aui or wx.lib.agw.aui?

> --
> Robin Dunn
> Software Craftsmanhttp://wxPython.org

The demo code from wxPython also crash when move the toolbar

···

On Fri, Jan 15, 2010 at 11:38 PM, Dustin Hice hicedustin@gmail.com wrote:

Should I be using wx.lib.agw.aui instead?

On Jan 14, 2:23 pm, Dustin Hice hicedus...@gmail.com wrote:

wx.aui

On Jan 14, 2:23 pm, Robin Dunn ro...@alldunn.com wrote:

On 1/14/10 11:32 AM, Dustin Hice wrote:

Hi,

After I added an AuiToolbar, I’ve since noticed that whenever I close
my program, Python seems to crash.

wx.aui or wx.lib.agw.aui?


Robin Dunn
Software Craftsmanhttp://wxPython.org


To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

The wx.lib.agw.aui version currently has more features and is pure
python. But it's really up to you which one you want to use.

···

On Jan 15, 9:38 am, Dustin Hice <hicedus...@gmail.com> wrote:

Should I be using wx.lib.agw.aui instead?

On Jan 14, 2:23 pm, Dustin Hice <hicedus...@gmail.com> wrote:

> wx.aui

> On Jan 14, 2:23 pm, Robin Dunn <ro...@alldunn.com> wrote:

> > On 1/14/10 11:32 AM, Dustin Hice wrote:

> > > Hi,

> > > After I added an AuiToolbar, I've since noticed that whenever I close
> > > my program, Python seems to crash.

> > wx.aui or wx.lib.agw.aui?

> > --
> > Robin Dunn
> > Software Craftsmanhttp://wxPython.org

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/

Which version and OS?

···

On Jan 15, 9:59 am, Kevin W <wang9...@gmail.com> wrote:

The demo code from wxPython also crash when move the toolbar

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/

I switched to wx.lib.agw.aui and it seems to have fixed my problem.

Thanks Everyone!

···

On Jan 15, 10:17 am, Mike Driscoll <kyoso...@gmail.com> wrote:

On Jan 15, 9:59 am, Kevin W <wang9...@gmail.com> wrote:

> The demo code from wxPython also crash when move the toolbar

Which version and OS?

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/