def exec_(self): if ExtendableDialog.exec_(self): self.deleted_plan_items = list(self._deleted_plan_items) self.new_cmp_items = list(self._new_cmp_items) for item in self.completed_items: try: self.deleted_plan_items.remove(item) except ValueError: pass try: self.new_cmp_items.remove(item) except ValueError: pass self.deleted_cmp_items = list(self._deleted_cmp_items) self.new_plan_items = list(self._new_plan_items) for item in self.reversed_items: try: self.deleted_cmp_items.remove(item) except ValueError: pass try: self.new_plan_items.remove(item) except ValueError: pass return True return False
def exec_(self): if self.worth_executing: if ExtendableDialog.exec_(self): self.config.user_chosen_option = \ self.options_widget.chosen_option self.config.write_config() return True return False
def exec_(self): if ExtendableDialog.exec_(self): if self.password_ok: return True else: QtWidgets.QMessageBox.warning( self.parent(), _("Login Error"), '<h2>%s %s</h2><em>%s</em>' % ( _('Incorrect'), _("User/password combination!"), _('Please Try Again.') ) ) return self.exec_() return False
def exec_(self): LOGGER.debug("exec_ called by %s", self.sender()) self.add_widgets() if self.sender() == self.data_fetcher: self.show_result() # lookup has been performed discreetly, only bother the user if # there is an update available if not self.update_available: return False else: self.data_fetcher.finished_signal.connect(self.show_result) QtCore.QTimer.singleShot(5000, self.hit_website) if ExtendableDialog.exec_(self): self.config.user_chosen_option = self.options_widget.chosen_option self.config.checked_today = self.checked_today self.config.write_config()
def exec_(self): while ExtendableDialog.exec_(self): self.db_check() if self.login_ok: if self.reception_radioButton.isChecked(): localsettings.station = "reception" localsettings.setOperator(self.user1, self.user2) self.accept() return True else: # LOGGER.debug("passwords ok %s", self.password_ok) # LOGGER.debug("user1 ok %s", self.user1_ok) # LOGGER.debug("user2 ok %s", self.user2_ok) QtGui.QMessageBox.warning( self.parent(), _("Login Error"), u'<h2>%s %s</h2><em>%s</em>' % (_('Incorrect'), _("User/password combination!"), _('Please Try Again.'))) return False
def exec_(self): while ExtendableDialog.exec_(self): self.db_check() if self.login_ok: if self.reception_radioButton.isChecked(): localsettings.station = "reception" localsettings.setOperator(self.user1, self.user2) self.accept() return True else: # LOGGER.debug("passwords ok %s", self.password_ok) # LOGGER.debug("user1 ok %s", self.user1_ok) # LOGGER.debug("user2 ok %s", self.user2_ok) QtGui.QMessageBox.warning( self.parent(), _("Login Error"), u'<h2>%s %s</h2><em>%s</em>' % ( _('Incorrect'), _("User/password combination!"), _('Please Try Again.') ) ) return False
def exec_(self): if ExtendableDialog.exec_(self): self._open_document() return True return False
def exec_(self): if ExtendableDialog.exec_(self): return self.apply() return False
def exec_(self): if ExtendableDialog.exec_(self): self.apply() return True return False
def exec_(self): result = ExtendableDialog.exec_(self) if result: result = self.check_valid_input or self.exec_() return result
def exec_(self): if ExtendableDialog.exec_(self): self._apply() return True return False