1
Vote

PyQt argument info for constructors is incorrect

description

Start with the following code:
from PyQt5.QtWidgets import *
Then type "QPu" on the second line and press Ctrl+Space (to open completion list). Scroll down to QPushButton in the list and highlight it. It will show a tooltip on the right of the completion list with the following signatures:

QPushButton(QWidget parent=None)
QPushButton(str, QWidget parent=None)
QPushButton(QIcon, str, QWidget parent=None)

These are the expected signatures. Now complete typing QPushButton and type ( to trigger argument help. It shows a tooltip with the sole signature being:

QPushButton(*args)

I would expect it to show the same signatures as in the completion list.

Also repros with PyQt4 on Python 2.7.

comments

Zooba wrote Oct 3, 2013 at 4:02 PM

Probably related to https://pytools.codeplex.com/workitem/1658 (xrange is also a class).