I just downloaded wxPython, and was running some of the sample programs from here. However, on every line that uses a variable from wx.*, I get a \"Undefined variable from i
This happened to me. I had installed PyDev and configured it and went on my merry way. A few months later, I installed wxPython and had this same problem. An easy way to fix is in eclipse:
Window -> Preferences -> Pydev -> Interpreter - Python
Just remove the default interpreter and add a new one (it can be the same one you had before). Pydev/Eclipse searches through your Python Installation directory and adds the correct paths to your PYTHONPATH. I restarted and all was well. I noticed it added
C:\Python26\lib\site-packages\wx-2.8-msw-unicode
So you could probably just add that to the PYTHONPATH instead of going through all the above, assuming that path is where this directory is installed.
By the way, I am using:
But I think this should be a pretty general solution to the problem.