Fehlermeldung mit wxpython
Verfasst: Mittwoch 11. Februar 2009, 18:50
Hallo zusammen,
ich hatte mir wxpython heruntergeladen und nachfolgendes Listing hineinkopiert:
#!/usr/bin/pythonw
from wxPython.wx import *
class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, "Hello wxPython-World!")
frame.Show(true)
self.SetTopWindow(frame)
return true
app = MyApp(0)
app.MainLoop()
Nach dem Start erschien folgende Fehlermeldung:
Warning (from warnings module):
File "E:/Python25/Listings/wxpython_test.py", line 3
from wxPython.wx import *
DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained. Please switch to the wx package as soon as possible.
Das Window wurde dennoch dargestellt!
Ich bin neu in der Materie und weiß nicht wie ich vorgehen muß, um den Fehler loszuwerden.
Gruß Volker
ich hatte mir wxpython heruntergeladen und nachfolgendes Listing hineinkopiert:
#!/usr/bin/pythonw
from wxPython.wx import *
class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, "Hello wxPython-World!")
frame.Show(true)
self.SetTopWindow(frame)
return true
app = MyApp(0)
app.MainLoop()
Nach dem Start erschien folgende Fehlermeldung:
Warning (from warnings module):
File "E:/Python25/Listings/wxpython_test.py", line 3
from wxPython.wx import *
DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained. Please switch to the wx package as soon as possible.
Das Window wurde dennoch dargestellt!
Ich bin neu in der Materie und weiß nicht wie ich vorgehen muß, um den Fehler loszuwerden.
Gruß Volker