1.信号与槽
self.digitalView.pushButton.clicked.connect(self.fault_show_function)
2.槽函数实现
def fault_show_function(self):
dialog_fault = QDialog()
url_father = os.path.dirname(os.path.abspath(__file__))
image_path = url_father + "/fault_information.png"
pic = QPixmap(image_path)
label_pic = QLabel("show", dialog_fault)
label_pic.setPixmap(pic)
label_pic.setGeometry(10,10,1019,537)
dialog_fault.exec_()