PyQt stub modules?

140 views
Skip to first unread message

JP

unread,
May 23, 2012, 12:42:03 PM5/23/12
to python_inside_maya
Hey All,

Was wondering if any emacs users had PyQt completion working. The
completion mechanism many seem to use in emacs is pymacs+rope/ropemacs/
ropemode, but as far as I can tell, it doesn't work with the binary
files installed in the PyQt4 package. I've been using the stub
modules for Maya, which has seemed to work alright - maybe someone has
already gone to the trouble of generating stub modules for PyQt?

Thanks,
JP

David Moulder

unread,
May 23, 2012, 1:32:06 PM5/23/12
to python_in...@googlegroups.com
I would also be interested in this.  I use PyCharm and have partial completion working.  PyCharm is meant to import any *.pyd modules it can as a background task, then produce internal stub files.

I'm yet to get completion working in any editor correctly for PyQt.


John Patrick

unread,
May 23, 2012, 2:25:58 PM5/23/12
to python_in...@googlegroups.com
Yep, the way I've seen this working is through editors that run a python process that imports and inspects the modules, like Eclipse can.

I did a little more Googling and found that rope has an 'extention modules' preference that can be configured - these modules are imported and inspected.

Not familiar with PyCharm, but maybe there's something similar?
John Patrick
404-242-2675
jspa...@gmail.com
http://www.canyourigit.com

Justin Israel

unread,
May 23, 2012, 3:10:25 PM5/23/12
to python_in...@googlegroups.com
Yea I have been using SublimeEdit2 lately, which does not code complete for PyQt (though I am so engrained with having the docs open in a browser anyways). But when I used to use eclipse, it did work great for me as well. Unfortunately eclipse was always super heavy on the system and kind of unstable for me.

Kurian O.S

unread,
May 23, 2012, 3:12:32 PM5/23/12
to python_in...@googlegroups.com
You may try this http://stackoverflow.com/questions/10407886/how-to-let-yasnippet-support-pyqt-in-emacs
--:: Kurian ::--

Reply all
Reply to author
Forward
0 new messages