Debugging in VS code doesnot results any output Pyqt5 .ui file

  Kiến thức lập trình


import sys
from PyQt5.QtWidgets import*
from PyQt5.uic import loadUi
class MyForm(QMainWindow):
    def __init__(self):
        loadUi('dm.ui',self)
        self.pbClick.clicked.connect(self. display_message)
    def display_message(self):
        self.label_2.SetText("Hello "+self.leName.text())
    if __name__=="__main__":
        app = QApplication(sys.argv)
        ex = MyForm()
        ex.show()
        sys.exit(app.exec())

i tried loading .ui file in python code and debugging , i see no results

3

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website Kho Theme wordpress Kho Theme WP Theme WP

LEAVE A COMMENT