By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,097 Members | 1,580 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,097 IT Pros & Developers. It's quick & easy.

Learning to use wxPython

P: n/a
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.

Apr 27 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
KDawg44 wrote:
Hi,
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
From here, I read that you are using the wx version 2.6 and the demo
that you are tring are for the 2.8.3! (the last as now).
So:
1) install the new 2.8
2) download the demo for the 2.6! :)

Bye,
Michele
Apr 27 '07 #2

P: n/a
On Apr 27, 11:25 am, Michele Petrazzo
<michele.petrazzoDEL...@DELETEunipex.itwrote:
KDawg44 wrote:
Hi,

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

From here, I read that you are using the wx version 2.6 and the demo
that you are tring are for the 2.8.3! (the last as now).
So:
1) install the new 2.8
2) download the demo for the 2.6! :)

Bye,
Michele
ahhh my bad i did not realize that. Thanks!

Apr 27 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.