How create a menu popup ?

"Fernando Paiva" <[email protected]>
Newsgroups gmane.comp.python.wxpython,gmane.comp.ide.boa-constructor.user
Message-ID <000d01c8c701$f6dbbdf0$fe01a8c0@negao>
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 ?

_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.