Re: Re: problem calling method

2009-01-14 Thread Rhodri James
On Wed, 14 Jan 2009 10:54:21 -, 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 do

Re: Re: problem calling method

2009-01-14 Thread pieterprovoost
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 s

Re: problem calling method

2009-01-13 Thread James Mills
On Wed, Jan 14, 2009 at 11:28 AM, 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) .