So i am making an application where i would like the user to accept some terms via a checkbox. I've gotten the checkbox to execute a function when checked, but i cant figure out how i would make all the other functions and widgets look at that checkbox state to see if they can execute.
#function for if the box is checked
def agree_box():
if
#Agree box
self.agree_box = QtWidgets.QCheckBox(self.centralwidget)
self.agree_box.setGeometry(QtCore.QRect(340, 140, 141, 17))
self.agree_box.setObjectName("agree_box")
self.agree_box.stateChanged.connect(agree_box)
Aucun commentaire:
Enregistrer un commentaire