Learning to use wxPython

KDawg44 KDawg44 at gmail.com
Fri Apr 27 12:11:17 EDT 2007


Hi,

I downloaded the wxPython demo and did an emerge wxpython (gentoo) to
install.  When I run the demo, I am getting this error:


# python demo.py
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/
_misc.py", line 1286, in Notify
    self.notify()
  File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/
_core.py", line 13637, in Notify
    self.result = self.callable(*self.args, **self.kwargs)
  File "/root/wxPython Demo/wxPython-2.8.3.0/demo/Main.py", line 1798,
in ShowMain
    frame = wxPythonDemo(None, "wxPython: (A Demonstration)")
  File "/root/wxPython Demo/wxPython-2.8.3.0/demo/Main.py", line 1275,
in __init__
    self.filter = wx.SearchCtrl(leftPanel)
AttributeError: 'module' object has no attribute 'SearchCtrl'

What am I doing wrong?

Thanks.




More information about the Python-list mailing list