Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 28th, 2010, 01:57 PM
Dan++ Dan++ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 105 Dan++ User rank is Lance Corporal (50 - 100 Reputation Level)Dan++ User rank is Lance Corporal (50 - 100 Reputation Level)Dan++ User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 19 h 36 sec
Reputation Power: 9
WxPython in Eclipse (PyDev)

Not entirely sure I should be asking this here so feel free to bite my head off if this is a faux pas.

But basically I'm using PyDev in Eclipse and recently installed the wxPython libraries - it imports fine using IDLE, etc, and when I run a Python program using wxPython it runs fine - but one little thing really bugs me. For some reason, despite making sure that wx and wxPython are in the 'Forced Builtins' section of the PyDev preferences, PyDev refuses to recognise any of the things I do with wx:
Code:
Undefined variable from import: Frame

And the like are the messages - all I see is little X's and squiggly red underlines, so you can imagine how irritating this is.

Has anyone encountered this problem with PyDev & wxPython before, and/or know how to fix it? Last time I had the problem, it was due to the Forced Builtins not being properly set up but I can't see how that is the problem this time.

Reply With Quote
  #2  
Old March 19th, 2010, 12:48 PM
kaju kaju is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2010
Posts: 1 kaju User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 55 sec
Reputation Power: 0
I'm having exactly the same problem. Can't anybody help? It's kinda hard without auto completion etc.

Reply With Quote
  #3  
Old December 29th, 2010, 01:26 AM
ATeamDev ATeamDev is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2010
Posts: 1 ATeamDev User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m
Reputation Power: 0
Work around

Hi there
I ran into the same problem and found a way around it. Not entirely sure this is the most clean way of doing things but it works.

In your Eclipse preferences, navigate to the Interpreter - Python settings. Remove Python interpreters and all the System PYTHONPATH settings.

Then re-add the Python interpreter and Eclipse will detect and add the PYTHONPATHs and the WX packages

Hello auto-completion!

Hope this helps

ATeamDev

Reply With Quote
  #4  
Old September 5th, 2012, 03:17 PM
praveenak praveenak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 1 praveenak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 59 sec
Reputation Power: 0
Thumbs up

Quote:
Originally Posted by ATeamDev
Hi there
I ran into the same problem and found a way around it. Not entirely sure this is the most clean way of doing things but it works.

In your Eclipse preferences, navigate to the Interpreter - Python settings. Remove Python interpreters and all the System PYTHONPATH settings.

Then re-add the Python interpreter and Eclipse will detect and add the PYTHONPATHs and the WX packages

Hello auto-completion!

Hope this helps

ATeamDev


Thanks a lot to you. Now it works like a charm without any X marks in the code which irritates even though program works. I went to Window>Preferences and Removed python Interpreter and added the Python Interpreter again. That Worked.
You are Awesome

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > WxPython in Eclipse (PyDev)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap