def _clicked(self, but): if but == self.postpone_but: self.postpone_appointment() elif but == self.apply_but: self.confirm_cancel_all() else: ExtendableDialog._clicked(self, but)
def _clicked(self, but): """ "private" function called when button box is clicked """ role = self.button_box.buttonRole(but) if role == self.button_box.ActionRole: self.next_widget() else: ExtendableDialog._clicked(self, but)
def _clicked(self, but): ''' "private" function called when button box is clicked ''' role = self.button_box.buttonRole(but) if role == self.button_box.ActionRole: self.next_widget() else: ExtendableDialog._clicked(self, but)
def _clicked(self, but): ''' overwrite :doc:`ExtendableDialog` _clicked ''' if but == self.more_but: FinalChoiceDialog.FILTER = not self.FILTER self.load_candidates() return ExtendableDialog._clicked(self, but)
def _clicked(self, but): ''' overwrite :doc:`ExtendableDialog` _clicked ''' if but == self.more_but: FinalChoiceDialog.FILTER = not self.FILTER self.load_candidates() return ExtendableDialog._clicked(self, but)
def _clicked(self, but): ''' overwrite BaseDialog method ''' if but == self.apply_but and QtWidgets.QMessageBox.question( self, _("Confirm"), _("Apply Changes?"), QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Cancel, QtWidgets.QMessageBox.Cancel) == QtWidgets.QMessageBox.Cancel: return ExtendableDialog._clicked(self, but)
def _clicked(self, but): ''' overwrite BaseDialog method ''' role = self.button_box.buttonRole(but) if role == QtGui.QDialogButtonBox.ApplyRole and QtGui.QMessageBox.question( self, _("Confirm"), _("Apply Changes?"), QtGui.QMessageBox.Ok | QtGui.QMessageBox.Cancel, QtGui.QMessageBox.Cancel) == QtGui.QMessageBox.Cancel: return ExtendableDialog._clicked(self, but)
def _clicked(self, but): ''' overwrite BaseDialog method ''' if but == self.apply_but and QtWidgets.QMessageBox.question( self, _("Confirm"), _("Apply Changes?"), QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Cancel, QtWidgets.QMessageBox.Cancel) == QtWidgets.QMessageBox.Cancel: return ExtendableDialog._clicked(self, but)
def _clicked(self, but): ''' overwrite BaseDialog method ''' role = self.button_box.buttonRole(but) if role == QtGui.QDialogButtonBox.ApplyRole and QtGui.QMessageBox.question( self, _("Confirm"), _("Apply Changes?"), QtGui.QMessageBox.Ok | QtGui.QMessageBox.Cancel, QtGui.QMessageBox.Cancel ) == QtGui.QMessageBox.Cancel: return ExtendableDialog._clicked(self, but)
def _clicked(self, but): if but == self.discard_but: self.discard() return ExtendableDialog._clicked(self, but)
def _clicked(self, but): if but == self.discard_but: self.discard() return ExtendableDialog._clicked(self, but)