Re: wxpython: can't even create a Panel

2006-06-08 Thread John Salerno
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

Re: wxpython: can't even create a Panel

2006-06-08 Thread Tim Chase
> 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"

Re: wxpython: can't even create a Panel

2006-06-08 Thread Fredrik Lundh
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

wxpython: can't even create a Panel

2006-06-08 Thread John Salerno
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(