problem calling method
Rhodri James
rhodri at wildebst.demon.co.uk
Wed Jan 14 22:45:41 EST 2009
On Wed, 14 Jan 2009 10:54:21 -0000, <pieterprovoost at gmail.com> wrote:
> 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)
1. Please don't top-post. It makes the thread of discussion really
hard to follow.
2. You've over-snipped now; could you repost the MyFrame class
without oversimplifying it? It would make it a lot easier to
see what's going on.
3. There is no point 3.
--
Rhodri James *-* Wildebeeste Herder to the Masses
More information about the Python-list
mailing list