How to use wxPython demo

Reply

Join Date: Dec 2006
Posts: 28
Reputation: trihaitran is an unknown quantity at this point 
Solved Threads: 0
trihaitran trihaitran is offline Offline
Light Poster

How to use wxPython demo

 
0
  #1
Apr 1st, 2007
Hi I know this sounds really stupid, but I cannot figure out how to run the wxPython demo program. I'm using OS X and I downloaded the latest demo/docs package. When I double click on the "wxPytho demo.app", there is a splash screen with the wxPython logo, but then there is nothing. There is no window to see or click on. The menu has only one item outside of the default OS X ones, this being the quit item. I went into the sample folder and tried to run the "demo.pyw". The result was the same. I ran "Main.py" and the same thing happened again except that I got the following error in the console:

  1. Last login: Sun Apr 1 00:03:25 on ttyp3
  2. Welcome to Darwin!
  3. hai-trans-powerbook-g4-15:~ haitran$ "/Library/Frameworks/Python.framework/Versions/2.4/bin/python" "/Volumes/wxPython2.8-osx-docs-demos-2.8.3.0-universal10.4-py2.5/Samples/demo/Main.py" && echo Exit status: $? && exit 1
  4. Traceback (most recent call last):
  5. File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_misc.py", line 1286, in Notify
  6. self.notify()
  7. File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core.py", line 13637, in Notify
  8. self.result = self.callable(*self.args, **self.kwargs)
  9. File "/Volumes/wxPython2.8-osx-docs-demos-2.8.3.0-universal10.4-py2.5/Samples/demo/Main.py", line 1798, in ShowMain
  10. frame = wxPythonDemo(None, "wxPython: (A Demonstration)")
  11. File "/Volumes/wxPython2.8-osx-docs-demos-2.8.3.0-universal10.4-py2.5/Samples/demo/Main.py", line 1275, in __init__
  12. self.filter = wx.SearchCtrl(leftPanel)
  13. AttributeError: 'module' object has no attribute 'SearchCtrl'

I know that this cannot be difficult and I must be overlooking something simple, but I just don't get it. Any ideas? Thanks.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1,521
Reputation: Lardmeister is an unknown quantity at this point 
Solved Threads: 22
Lardmeister's Avatar
Lardmeister Lardmeister is offline Offline
Posting Virtuoso

Re: How to use wxPython demo

 
0
  #2
Apr 1st, 2007
Can you run any wxPython code, even just a small program?
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 28
Reputation: trihaitran is an unknown quantity at this point 
Solved Threads: 0
trihaitran trihaitran is offline Offline
Light Poster

Re: How to use wxPython demo

 
0
  #3
Apr 1st, 2007
Yes, I can run the programs in the "samples" directory, just not any from the "demo" directory.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 28
Reputation: trihaitran is an unknown quantity at this point 
Solved Threads: 0
trihaitran trihaitran is offline Offline
Light Poster

Re: How to use wxPython demo

 
0
  #4
Apr 1st, 2007
Ok, I've figured it out now. It's not working because I'm mixing the versions up. I have wxPython 2.6 installed and am attempting to run the wxPython 2.8 demo. Once the versions are matched, everything is peachy.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 8
Reputation: leeqiang is an unknown quantity at this point 
Solved Threads: 1
leeqiang leeqiang is offline Offline
Newbie Poster

Re: How to use wxPython demo

 
0
  #5
Apr 16th, 2007
great~ enjoy python
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC