Qt import autocompletion

Hello!

First of all, I have been using Idea for a long time for Java and it is really great IDE! That's why when I faced with Python I chose PyCharm without hesitation.

Can you please tell me if it is possible to use import autocompletion such as following:

from PyQt4 import ...   -> from PyQt4 import QtGui

PyCharm suggests only two .py files for importing from PyQt4. I noticed that most files, including QtGui are .pyd in my project libraries, and PyCharm doesn't notice them.

If it is impossible - can you please tell, what IDE can import such things? I mean after programming on Java I am surprised by poor facilities provided by all Python IDEs.

Thanks!

0
4 comments
Avatar
Permanently deleted user

Now I see the problems with .pyd.. It is something like .DLL, no questions why PyCharm can't introspect this..

I am wondering if everyone uses Qt without autocompletion? It is quite a big library, it is really inconvenient to type all functions by hands..

Thanks.

0
Avatar
Permanently deleted user

I found iteresting thing: if I import like this (PyCharm suggest this variant) then I see autocompletion for QtGui - like QtGui.QWidget!

from PyQt4.uic.Compiler.qtproxies import QtGui

Can you tell anything about such approach?

0

Hello Alex,

In general, PyCharm does support binary modules (by importing them in a running

Python instance and creating .py file stubs for exported declarations), but

PyQt4 does something tricky so we don't understand it well by default. We

plan to fix this before 1.0, and you can watch http://youtrack.jetbrains.net/issue/PY-275

to get notified when the problem is fixed.

First of all, I have been using Idea for a long time for Java and it

is really great IDE! That's why when I faced with Python I chose

PyCharm without hesitation.

Can you please tell me if it is possible to use import autocompletion

such as following:

from PyQt4 import ...   -> from PyQt4 import QtGui

PyCharm suggests only two .py files for importing from PyQt4. I

noticed that most files, including QtGui are .pyd in my project

libraries, and PyCharm doesn't notice them. If it is impossible - can

you please tell, what IDE can import such things? I mean after

programming on Java I am surprised by poor facilities provided by all

Python IDEs.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Avatar
Permanently deleted user

Thanks Dmitry!

I will look at it from time to time.

0

Please sign in to leave a comment.