Tim Chase wrote:
> It looks like a subtle difference between
>
> panel = wx.Panel(self)
>
> and
>
> panel = wx.Panel(self)
Ack! Thanks guys! What's funny is that at first I even had it beneath
the __init__ method, but then I unindented because it looked wrong for
some reason! :P
> def __init__(self, parent, title):
> wx.Frame.__init__(self, parent, -1, title)
>
> panel = wx.Panel(self)
It looks like a subtle difference between
panel = wx.Panel(self)
and
panel = wx.Panel(self)
As the error message states, there is no "self"
John Salerno wrote:
> I'm using the sample code of the file 'simple.py' and trying to make a
> single window with a panel in it, but I keep getting an error. Here's my
> code: (I know I might need something else, like a Show() method for the
> panel, but the error stops on the first panel line
I'm using the sample code of the file 'simple.py' and trying to make a
single window with a panel in it, but I keep getting an error. Here's my
code: (I know I might need something else, like a Show() method for the
panel, but the error stops on the first panel line anyway. I've tried a
Layout(