May-19-2023, 05:59 PM
(This post was last modified: May-19-2023, 06:05 PM by deanhystad.)
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
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.
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