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