Hello!
I'm trying (emphasis on the try) to learn wxPython and could do with a
little help
When I run this script:
···
-----
from wxPython.wx import *
class MyFrame(wxFrame):
def __init__(self, parent, ID, title):
wxFrame.__init__(self, parent, ID, title, wxDefaultPosition, wxSize(200,
150))
self.out = wxTextCtrl(self, 1, style=wxTE_DONTWRAP | wxTE_READONLY |
wxTE_MULTILINE)
self.out.AppendText("Some Text\n")
self.out.AppendText("Some more text\n")
class MyApp(wxApp):
def OnInit(self):
self.frame = MyFrame(NULL, -1, "")
self.frame.Show(true)
self.SetTopWindow(self.frame)
return true
def MainLoop(self):
self.frame.out.AppendText("Hello")
app = MyApp(0)
app.MainLoop()
-----
I get this error:
-----
17:51:55: Debug: e:\projects\wx\src\msw\app.cpp(439):
'UnregisterClass(canvas)' failed with error 0x00000584 (class still has
open windows.).
-----
Any ideas why? I sure as heck don't. I'm running Python 2.2.2, wxPython
2.4 on a Win2k system.
Many thanks.....
Nick