pyQt5 attributes suggestion when typing dot

  • I have trouble with finding out the possible attributes of an object.
    For example, I wrote

    btn = QPushButton(self)
    btn.setText('push me')

    but when I type a new line


    I don't get any suggestion. Why?
    I am using Spyder, with Python3.6 and Qt5. Shall I change editor? Pycharm?

  • @webgiorgio
    I use PyCharm with PyQt5 and it's great, including completions; it's also an excellent debugger, which is petty important. I know nothing about "Spyder". In the case you show, as you type the . after btn PyCharm would indeed get the necessary information from PyQt to show the available completions.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.