Having more than one Tool Bar in a wxMDIParent Frame

bala wrote:

Hi, I want to have more than one tool bar in a wxMDIParent Frame... If i use CreateToolBar method or wxToolBar constructor..an error is
throwing that, wxPyAssertionError: C++ assertion "wxAssertFailure"
failed in e:\Projects\wx2.4\src\common\framecmn.cpp(352): recreating
toolbar in wxFrame

As you have discovered Frames can only manage one toolbar at a time. So if you want to have more than one you need to create and manage them yourself just like any other subwindow. So just create the wxToolbar directly and then put it in a Sizer or whatever to manage its size and position.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!