Exemple #1
0
 def __init__(self, controller_uid):
     UIViewObject.__init__(self, controller_uid)
     UIM = UIManager()
     controller = UIM.get(self._controller_uid)
     if controller.id == wx.ID_ANY:
         controller.id = UIM.new_wx_id()
     wx.Menu.__init__(self)
Exemple #2
0
 def __init__(self, controller_uid):
     UIViewObject.__init__(self, controller_uid)
     _UIM = UIManager()
     controller = _UIM.get(self._controller_uid)
     if controller.id == wx.ID_ANY:
         controller.id = _UIM.new_wx_id()
     try:
         wx.MenuItem.__init__(self, None, controller.id, controller.label,
                              controller.help, controller.kind)
     except Exception as e:
         print(e)
         raise