same menu point is activated

Greg Krohn greg at example.invalid
Thu Aug 25 09:33:14 EDT 2005


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)
                                     ^^^^^^^^^^

etc.


-greg



More information about the Python-list mailing list