def __init__(self, controller_uid):
    UIViewObject.__init__(self, controller_uid)
    _UIM = UIManager()
    controller = _UIM.get(self._controller_uid)
    parent_controller_uid = _UIM._getparentuid(self._controller_uid)
    parent_controller = _UIM.get(parent_controller_uid)
    wx.ToolBar.__init__(self, parent_controller.view, controller.id, controller.pos, controller.size, controller.style)
    self.Realize()
    if isinstance(parent_controller, MainWindowController):
        mgr = wx.aui.AuiManager.GetManager(parent_controller.view)
        mgr.AddPane(self, self.paneinfo)
        mgr.Update()
def __init__(self, controller_uid):
    UIViewObject.__init__(self, controller_uid)
    _UIM = UIManager()
    controller = _UIM.get(self._controller_uid)
    parent_controller_uid = _UIM._getparentuid(self._controller_uid)
    parent_controller = _UIM.get(parent_controller_uid)
    wx.ToolBar.__init__(self, parent_controller.view, controller.id, controller.pos, controller.size, controller.style)
    self.Realize()
    if isinstance(parent_controller, MainWindowController):
        mgr = wx.aui.AuiManager.GetManager(parent_controller.view)
        mgr.AddPane(self, self.paneinfo)
        mgr.Update()