How to get code completion for PyQt using Pydev
- Go to "Window" -> "Preferences..." -> "Pydev" -> "Interpreter - Python"
- In the "Forced builtin libs" section, click "New..."
- Type in "PyQt4" and click "OK".
- Click "OK" to close the Preferences window.
7
Comments
—
Comments feed for this post
#4 Saatvik commented on 2009-02-26:
For some reason, this still doesn't work for me. I'm using the eclipse that comes with Python(x,y) but I don't think that should make a difference. I've tried adding PyQt4 to both the PYTHONPATH and the Forced Builtin libs and nothing works. Also tried reinstalling PyQt4 without any success.
Thanks
#5 Al Dunstan commented on 2009-05-01:
I've had the same problem as Saatvik. I ran Eclipse from the command line, however, and noticed that it was throwing a ClassCastException when trying to do the completion, trying to cast a SystemASTManager to an ASTManager. I'm going to post the bug at Pydev shortly.
#6 Sebastián commented on 2009-06-21:
Works like a charm, thank you :) I was thinking of using eric4, but now I think I'll stick to Eclipse, the troll at Eric's splashscreen scares the hell out of me.
#7 bswix commented on 2010-05-07:
This works for auto-completion, but I cannot seem to get any call tip for function arguments? Does anyone have this working?
Post a comment
About
I'm Eliot and this is my notepad for programming topics such as Python, Django, Ubuntu, Emacs, etc... more »
Search Blog
Tags
-
algorithms
(4)
-
aws
(8)
-
blogproject
(20)
-
c_cplusplus
(12)
-
cardstore
(8)
-
colinux
(2)
-
concurrency
(9)
-
conkeror
(2)
-
cygwin
(18)
-
datastructures
(15)
-
datetime
(3)
-
dell
(3)
-
django
(39)
-
emacs
(20)
-
files_directories
(10)
-
install_setup
(7)
-
javascript
(3)
-
keyboard
(6)
-
matplotlib
(5)
-
mercurial
(4)
-
nginx
(2)
-
preferences
(8)
-
processes
(3)
-
pyqt
(18)
-
python
(122)
-
ratpoison
(3)
-
regexes
(5)
-
rsync
(3)
-
softwaretools
(17)
-
sql
(13)
-
ssh
(7)
-
subversion
(6)
-
twisted
(6)
-
ubuntu
(60)
-
urxvt
(5)
-
vxworks
(25)
-
webservices
(4)
-
wmii
(7)
Blogroll
- Adam Gomaa
- Alex Clemesha
- Amir Salihefendic
- Armin Ronacher
- David Beazley
- David Ziegler
- Duncan McGreggor
- Gareth Rushgrave
- Glyph Lefkowitz
- Guido van Rossum
- Ian Bicking
- Jacob Kaplan-Moss
- James Bennett
- James Tauber
- Jesper Noehr
- Matt Harrison
- Nikolay Kolev
- Parand Darugar
- Peter Baumgartner
- Peter Bengtsson
- Rob Hudson
- Simon Willison
- Will McGugan
#1 Andrea Grandi commented on 2008-04-29:
Code completion now works fine for me, except for some classes. For example:
if I write: from PyQt4 import
it only shows me two class available: QtCore and QtGui, for example I cannot see QtNetwork, but if I write it by hand, my code execute it without problems.
Any suggestion about this problem?