How to use AuiToolbar?

Hello, i’m trying do use a AuiToolBar. But i can’t get it to show up. Can someone tell me what’s wrong with my code (see attachment)?

ToolbarTest.py (1.1 KB)

topix wrote:

Hello, i'm trying do use a AuiToolBar. But i can't get it to show up.
Can someone tell me what's wrong with my code (see attachment)?

You need to have an AuiManager and add the toolbar to the manager like any other AUI pane.

···

--
Robin Dunn
Software Craftsman

hi,

i get a segfault in simple auitoolbar example:

on_exit

on_close

Program received signal SIGSEGV, Segmentation fault.

0x00007fffecc438b7 in _wrap_delete_AuiToolBar (args=) at src/gtk/aui_wrap.cpp:21478

21478 src/gtk/aui_wrap.cpp: No such file or directory.

in src/gtk/aui_wrap.cpp

if i do not save a toolbar reference in managed-window ( self.tb = wx.aui.AuiToolbar() ) the app crashes if only i resize the frame.

andreas

tb.py (1.6 KB)

···

On Sunday, March 3, 2013 10:57:20 PM UTC+1, Robin Dunn wrote:

topix wrote:

Hello, i’m trying do use a AuiToolBar. But i can’t get it to show up.

Can someone tell me what’s wrong with my code (see attachment)?

You need to have an AuiManager and add the toolbar to the manager like
any other AUI pane.


Robin Dunn

Software Craftsman

http://wxPython.org