Traceback most recent call last File dpychammain3py line 37 in lambda selfpushButtonxiugaiclickedconnectlambdaselfstu_add File dpychammain3py line 59 in stu_add selfdetailSiganlconnectselfdb2s
These errors indicate that there is no attribute named 'detailSiganl' in the 'MainWindow' class/object. The code is trying to connect a signal to this attribute, but it does not exist.
To fix this error, you need to define the 'detailSiganl' attribute in the 'MainWindow' class. This can be done by adding the following line to the class definition:
self.detailSiganl = QtCore.pyqtSignal()
Make sure to import the QtCore module at the top of your code:
from PyQt5 import QtCore
Once you have added this line, the 'detailSiganl' attribute will be defined in the 'MainWindow' class, and the error should be resolved
原文地址: https://www.cveoy.top/t/topic/g8rO 著作权归作者所有。请勿转载和采集!