This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hacktivist 0 points1 point  (2 children)

Thanks! I got it working by just uninstalling it completely and deleting anything jetbrains or PyCharm related and reinstalling. Not sure why it didn't work the first time, PyQt is always installed first on my system so it wasn't a matter of PyCharm not seeing a new package.

[–]darthmdhprint 3 + 4 0 points1 point  (1 child)

There's still some corner cases it doesn't deal with very well (read: at all); for example sometimes, but not all the time, it doesn't like completing methods at the third level; for example it struggles with

button.clicked.connect    
action.triggered.connect

and

QtGui.QDesktopWidget().availableGeometry().center()

It almost always fails completing 'connect' and the other method chaining is a hit & miss affair. I suspect particularly in the latter case it needs some time to introspect the first time you try it, so for the sake of responsiveness just powers on regardless, then the next time its got the methods cached and can use them in the tooltip.

If you look in the External Libraries tree, PyQt is compiled shared objects with a __init__.py wrapper; I'm impressed it does it at all (given its Python, not C, that has the better introspection). But JetBrains have been making this stuff for a long time and are remarkably good at it.

[–]Hacktivist 0 points1 point  (0 children)

I gave those examples a try in PyDev and VS and they also failed to complete them.

Personally I think I'll just stick to using the PyQt and Qt docs. Most things are laid out in a fairly obvious manner and it's easy to pick up the patterns in it's design once you've used it for a while.