January 28th, 2010, 01:57 PM
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:
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.
Undefined variable from import: Frame
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.
March 19th, 2010, 12:48 PM
I'm having exactly the same problem. Can't anybody help? It's kinda hard without auto completion etc.
December 29th, 2010, 01:26 AM
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
Hope this helps
September 5th, 2012, 03:17 PM
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.
Originally Posted by ATeamDev
You are Awesome