[Tutor] Problem wxPython
Prabhakar K
prabhu.chinnee at gmail.com
Fri Feb 17 14:13:01 CET 2006
Hai to all,
I installed ActivePython-2.4.1-247-win32-ix86 and
wxPython2.6-win32-ansi-2.6.2.1-py2 in my system. When i Run a wxPython
example.. geeting an Errors
Traceback (most recent call last):
File
"E:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py",
line 310, in RunScript
exec codeObject in __main__.__dict__
File "F:\python\wx.py", line 1, in ?
from wxPython.wx import *
File "E:\Python24\lib\site-packages\wx-2.6-msw-ansi\wxPython\__init__.py",
line 10, in ?
import _wx
File "E:\Python24\lib\site-packages\wx-2.6-msw-ansi\wxPython\_wx.py", line
3, in ?
from _core import *
File "E:\Python24\lib\site-packages\wx-2.6-msw-ansi\wxPython\_core.py",
line 15, in ?
import wx._core
File "F:\python\wx.py", line 1, in ?
from wxPython.wx import *
ImportError: No module named wx
Program Code:
from wxPython.wx import *
class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, "Hello from wxPython")
frame.Show(true)
self.SetTopWindow(frame)
return true
app = MyApp(0)
app.MainLoop()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060217/a38e1d7c/attachment.html
More information about the Tutor
mailing list