Thx a lot, i'll try that asap :)
OllieZ
--
http://mail.python.org/mailman/listinfo/python-list
OllieZ wrote:
> Hi all
>
> Im trying to learn wxpython by some samples and Ive come across this.
> After change EVT_MENU lines from
> EVT_MENU(self, ID_OPEN, self.OnOpen) to
> self.Bind(wx.EVT_MENU, self.OnOpen)
It should be:
self.Bind(wx.EVT_MENU, self.OnOpen, id=ID_OPEN)
Hi all
Im trying to learn wxpython by some samples and Ive come across this.
After change EVT_MENU lines from
EVT_MENU(self, ID_OPEN, self.OnOpen) to
self.Bind(wx.EVT_MENU, self.OnOpen)
It can run, but the menu points all trigger the openfile dialog.
Seems like the last bind rules them all.
What