PyQt4 autocomplete, is there a solution yet?

Hello,

It seems for quite sometime there have been issues with code completion in PyCharm for the PyQt4 modules.  The most recent post I could find was from 2011, however it is now 2014 and in PyCharm 4.0.4 it still isn't working.

Am I missing something?
2 comments
Comment actions Permalink
Hello,
Please, contact pycharm-feedback@jetbrains.com with example which shows the problem and idea.log (http://intellij-support.jetbrains.com/entries/23352446).
0
Comment actions Permalink
The problem occurs when you create a derived class from a Qt class.  eg:


##  from PyQt4 import QtGui    <– with this I get only the methods defined in MyDialog ( ie __init__() )

from PyQt4.uic.Compiler.qtproxies import QtGui
import sys

class MyDialog(QtGui.QDialog):
    def __init__(self, parent=None):
        super(MyDialog, self).__init__(parent)

app = QtGui.QApplication(sys.argv)
my_dialog = MyDialog()

my_dialog.


At the dot on the last line ('my_dialog.'), if I do this on the python CLI, when I press tab, I get all of the QDialog methods and all it's inherited methods (364 entries if I do 'len(dir(my_dialog))'.

If at the same point in PyCharm 4.0.4, I press <ctrl>-<space>, I only get methods directly inherited from QDialog, not the methods that QDialog has also inherited (26 entries in the suggestions drop-down).
0

Please sign in to leave a comment.