from PyQt5 import QtCore, QtGui, QtWidgets from sys import argv class Ui_Form(object): def hi(self): print(111111) print(self.label.text())