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,  <pieterprovo...@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 pieterprovo...@gmail.com at 
openSubscriber.com
http://www.opensubscriber.com/message/python-list@python.org/11236393.html
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to