im trying to bind an event to a wx.bitmapbutton and im getting this error
self.Bind(wx.EVT_BUTTON, flabutton, self.startfla)
File “C:\Python24\Lib\site-packages\wx-2.6-msw-unicode\wx_core.py”, line 3629, in Bind
id = source.GetId()
AttributeError: ‘function’ object has no attribute ‘GetId’
any ideas why im getting this?
self.Bind(wx.EVT_BUTTON, flabutton, self.startfla)
Try to reverse the 2nd and 3rd argument:
self.Bind(wx.EVT_BUTTON, self.startfla, flabutton)
···
--
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
that worked. i swear i tried that and it diddnt work
···
On 10/11/06, Andrea Gavana <andrea.gavana@gmail.com > wrote:
self.Bind(wx.EVT_BUTTON, flabutton, self.startfla)
Try to reverse the 2nd and 3rd argument:
self.Bind(wx.EVT_BUTTON, self.startfla, flabutton)
–
Andrea.
“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.virgilio.it/infinity77/
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org