wxpython: can't even create a Panel
Fredrik Lundh
fredrik at pythonware.com
Thu Jun 8 15:38:45 EDT 2006
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 anyway. I've tried a
> Layout() method but it didn't get that far).
>
> import wx
>
> class MyFrame(wx.Frame):
>
> def __init__(self, parent, title):
> wx.Frame.__init__(self, parent, -1, title)
>
> panel = wx.Panel(self)
hint: in python, indentation matters.
</F>
More information about the Python-list
mailing list