The following forum message was posted by  at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3918340:

I just installed pydev, v1.6.3 into eclipe (Galileo) running on a Windows XP
machine. After configuring pydev to use Python 2.6 as the interpreter, I 
attempted
to create a project that would import PyQt4 modules to build a simple app.
Unfortunately, pydev isn't importing these correctly. The import statement is

from PyQt4 import QtGui, QtCore

This statement is not being flagged as an error by eclipse. But, when I attempt
to create a class

class MainWindow(QtGui.QMainWindow):
   def __init__(self, parent=None):
      <more code follows>

The class line is marked with a red x. The pop-up for the error states that
QMainWindow is an undefined variable. This happens at several other lines that
reference other QtGui and QtCore classes. I know these are, in fact, valid 
because
I can run the program directly from python in a command window.

The system PYTHONPATH defined in Eclipse does include the Lib/site-packages
folder in which PyQt4 resides. Other modules in site-packages can be used 
without
errors so I'm pretty sure the path is being set correctly.

Any ideas as to what is wrong and what I can do to fix it?

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to