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
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
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)
.
I'm trying to call a method within my wx frame, but that doesn't seem to work.
What am I doing wrong?
class MyFrame(wx.Frame):
def __init__(self, *args, **kwds):
self.Bind(wx.EVT_BUTTON, self.test, self.testbutton)
...
def sendmail(self):
...
def test(self, even