From: Phil E. <ph...@li...> - 2004-08-26 16:08:42
|
On Thursday 26 Aug 2004 16:09, Alex Tweedly wrote: > > This may be a really dumb question, but ... why ? > The GUI for the app has a bunch of imageButton components and I need to allow multiple selections by left-clicking whilst holding down the control key. Take a look at the first entry on: http://pythoncard.sourceforge.net/moreapplications.html > 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 > > Several words spring to mind, all of them Anglo-Saxon/Germanic in origin and none of them very polite...I should have engaged brain before posting. You are, of course, completely correct - no change is required to the event binding line. The real issue is that my event handling code isn't getting fired. I'd expect to see a message printed when I run the app from the command line with the following code: def on_multiSelect(self, event): print 'here we are!' if event.controlDown: self.need2Add = 1 -- Regards Phil Edwards Brighton, UK |