From: Phil E. <ph...@li...> - 2004-08-26 13:27:48
|
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: def on_multiSelect(self, event): if event.controlDown: self.need2Add = 1 The flag that's being set is dealt with elsewhere in the code. 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... :-) -- Regards Phil Edwards Brighton, UK |