From: Alex T. <al...@tw...> - 2004-08-26 14:59:46
|
At 14:26 26/08/2004 +0100, Phil Edwards wrote: >I've been using a custom event handler in one of my PythonCard apps, as >follows: > > wx.EVT_LEFT_UP(self.components.versionString, self.on_multiSelect) > >I've changed this to: > > wxEVT_LEFT_UP(self.components.versionString, self.on_multiSelect) > >the on_multiSelect() function doesn't do anything earth shattering: This may be a really dumb question, but ... why ? As far as I can tell, there shouldn't be any need to change this; at least, the resourceEditor in 0.8 still uses wx.EVT_LEFT_UP(self.panel, self.on_mouseUp) >I get an exception thrown when starting the program: > >Traceback (most recent call last): > File "./pimp.py", line 59, in on_initialize > wxEVT_LEFT_UP(self.components.versionString, self.on_multiSelect) >TypeError: 'int' object is not callable > >The migration guide tells me I should post event binding issues to the >mailing >list, so here I am... :-) Try changing it back ? What error do you get then ? If this doesn't help, I'm afraid it'll need to wait for Kevin or someone else ... -- Alex. |