problem calling method
pieterprovoost at gmail.com
pieterprovoost at gmail.com
Wed Jan 14 05:54:21 EST 2009
The parent is called like this (I didn't copy that line):
def __init__(self, *args, **kwds):
# begin wxGlade: MyFrame.__init__
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
The frame works fine and so does the button, but somehow I cannot call the sendmail method from the event handler...
-- James Mills wrote :
On Wed, Jan 14, 2009 at 11:28 AM, <pieterprovoost at gmai...> wrote:
> class MyFrame(wx.Frame):
> def __init__(self, *args, **kwds):
It might be helpful here if you called
the parent __init__. Like so:
class MyFrame(wx.Frame):
def __init__(self, *args, **kwds):
super(MyFrame, self).__init__(*args, **kwargs)
...
cheers
James
--
--
This message was sent on behalf of pieterprovoost at gmail.com at openSubscriber.com
http://www.opensubscriber.com/message/python-list@python.org/11236393.html
More information about the Python-list
mailing list