Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
combobox
#3
Hello,

can someone tell me what i'm doing wrong the library qtconsole.qt import QtCore doesn't work already uninstalled everything and reinstalled but error remains
( import qtconsole.qt could not be resolved (pylance(reportmissingimports [ln 5, Col 6]

Thank you
gr Paul

import sys
from PyQt5.QtWidgets import QApplication, QListWidgetItem, QMainWindow
from PyQt5.uic import loadUi
from qtconsole.qt import QtCore


class Main(QMainWindow):
    def __init__(self):
        super(Main, self).__init__()
        loadUi("main.ui", self)
        todos = ["hond uitlate", "boodschappen doen","mailen", "bank gaan","huishouden"]
        for todo in todos:
            item = QListWidgetItem(todo)
            self.todo_listWidget.addItem(item)
            

if __name__== '__main__':
    app = QApplication(sys.argv)
    window = Main()
    window.show()
    app.exec_()
deanhystad write May-19-2023, 06:05 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.

Attached Files

.py   main.py (Size: 623 bytes / Downloads: 52)
Reply


Messages In This Thread
combobox - by paulie70 - May-13-2023, 06:44 PM
RE: combobox - by deanhystad - May-13-2023, 07:39 PM
RE: combobox - by paulie70 - May-19-2023, 05:59 PM
RE: combobox - by deanhystad - May-19-2023, 06:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] How can I sync Combobox index to other combobox index? nickzsche 2 2,546 Jan-03-2022, 12:29 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020