Looks like you are passing a class rather than a pointer to an instance.
···
-----Original Message-----
From: Timothy Smith [mailto:timothy@open-networks.net]
Sent: Thursday, November 09, 2006 12:11 AM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] pusheventhandler
hello i'm trying to subvert the self._tc.PushEventHandler(BlankHandler)
in the Create method of a derived grid editor and push my own blank
event, but i keep getting the error
TypeError: argument number 2: a 'wxEvtHandler *' is expected,
'type(<class 'Main.BlankHandler'>)' is received
here is my eventhandler.
class BlankHandler(wx.EvtHandler):
def __init__(self):
wx.EvtHandler.__init__(self)
"i do nothing"
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org