Thread: [Boa Constr] How create a menu popup ?
Status: Beta
Brought to you by:
riaan
From: Fernando P. <fer...@bm...> - 2008-06-05 11:47:47
|
Hello All I am trying this for a create a wxMenu PopUp. parent.Append(help='', id=wxID_PRINCIPALMENUSEGURANCAUSUARIOS, kind=wx.ITEM_NORMAL, text='Users') parent.Append(help='', id=wxID_PRINCIPALMENUSEGURANCAGRUPOUSUARIO, kind=wx.ITEM_NORMAL, text='Group of Users') self.panel1 = wx.Panel(id=wxID_PRINCIPALPANEL1, name='panel1', parent=self, pos=wx.Point(0, 0), size=wx.Size(392, 444), style=wx.MAXIMIZE_BOX | wx.TAB_TRAVERSAL | wx.SUNKEN_BORDER) self.panel1.Bind(wx.EVT_RIGHT_UP, self.OnPanel1RightUp) def OnPanel1RightUp(self, event): menu = self.menuSeguranca() mouseEvent = event.GetPoint() self.PopupMenu(menu, mouseEvent) The traceback is: TypeError: 'Menu' object is not callable Any idea ? |