Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. pyQt5 attributes suggestion when typing dot
Forum Updated to NodeBB v4.3 + New Features

pyQt5 attributes suggestion when typing dot

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 430 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    webgiorgio
    wrote on last edited by
    #1

    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

    btn.
    

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

    JonBJ 1 Reply Last reply
    0
    • W webgiorgio

      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

      btn.
      

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

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved