def handle_action_event(self, action_command): if action_command == 'Close_and_Convert': self.convertOnClose = True elif action_command == 'Cancel': self.convertOnClose = False else: evt_handler.raise_unknown_action(action_command) self.dlgClose()
def handle_action_event(self, action_command): if action_command == 'ResetItem': self.resetItem() elif action_command == 'CopyItem': self.copyItem() elif action_command == 'PasteItem': self.pasteItem() else: evt_handler.raise_unknown_action(action_command)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "Close": logger.debug("Action command was Close") self.mainForm.dlgClose() elif event.ActionCommand == "SetCorrection": self.mainForm.setCorrection() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "ShowFilePicker": self.mainForm.showFilePicker() elif event.ActionCommand == "Cancel": self.mainForm.dlgClose() elif event.ActionCommand == "Close_and_Run": self.mainForm.closeAndRun() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "SelectWritingSys": self.mainForm.selectWritingSys() elif event.ActionCommand == "OK": self.mainForm.storeAndClose() elif event.ActionCommand == "Cancel": self.mainForm.dlgClose() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "OK": itemPos = self.listbox.getSelectedItemPos() logger.debug("Item %d selected.", itemPos) if itemPos is not None and itemPos > 0: wsIndex = itemPos - 1 # excluding the first entry "(none)" self.selectedWS = self.writingSystems[wsIndex] self.dlgClose() logger.debug("OK finished") else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == 'SelectConverter': self.mainForm.selectConverter() elif event.ActionCommand == 'NoConverter': self.mainForm.noConverter() elif event.ActionCommand == 'Cancel': logger.debug("Action command was Cancel") self.mainForm.dlgClose() elif event.ActionCommand == 'Close_and_Convert': self.mainForm.closeAndConvert() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "RevertChars": self.mainForm.revertChars() elif event.ActionCommand == "Close_and_Compare": self.mainForm.getFormResults() self.mainForm.compareOnClose = True self.mainForm.dlgClose() elif event.ActionCommand == "Close": self.mainForm.getFormResults() self.mainForm.dlgClose() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "FileAdd": self.mainForm.updateFile(False) self.mainForm.addFile() elif event.ActionCommand == "FileRemove": self.mainForm.removeFile() elif event.ActionCommand == "OK": self.mainForm.storeAndClose() elif event.ActionCommand == "Cancel": self.mainForm.dlgClose() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "InsertEx": self.mainForm.insertEx() elif event.ActionCommand == "FindNext": self.mainForm.findNext() elif event.ActionCommand == "Replace": self.mainForm.replace() elif event.ActionCommand == "ReplaceAll": self.mainForm.replaceAll() elif event.ActionCommand == "Close": self.mainForm.dlgClose() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "ShowFilePicker": self.mainForm.showFilePicker() elif event.ActionCommand == "AddXpath": self.mainForm.addXpath() elif event.ActionCommand == "RemoveXpath": self.mainForm.removeXpath() elif event.ActionCommand == "Close_and_Export": self.mainForm.closeAndExport() elif event.ActionCommand == "Close": self.mainForm.closeDlg() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "ResetChars": self.mainForm.resetChars() elif event.ActionCommand == "ChooseFiles": self.mainForm.chooseFiles() elif event.ActionCommand == "Switch": self.mainForm.switch() elif event.ActionCommand == "NextWord": self.mainForm.showNextQuestion() elif event.ActionCommand == "Retry": self.mainForm.prepareAnswerBox() elif event.ActionCommand == "ResetStats": self.mainForm.resetStats() elif event.ActionCommand == "Exit": logger.debug("Action command was Exit") self.mainForm.dlgClose() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "FileAdd": self.mainForm.fileAdd() elif event.ActionCommand == "FileChange": self.mainForm.fileChange() elif event.ActionCommand == "FileRemove": self.mainForm.fileRemove() elif event.ActionCommand == "MoveUp": self.mainForm.moveUp() elif event.ActionCommand == "MoveDown": self.mainForm.moveDown() elif event.ActionCommand == "Close": self.mainForm.storeUserVars() self.mainForm.dlgClose() elif event.ActionCommand == "MakeList": self.mainForm.makeList() else: evt_handler.raise_unknown_action(event.ActionCommand)
def actionPerformed(self, event): """XActionListener event handler. Handle which button was pressed.""" logger.debug("%s %s", util.funcName(), event.ActionCommand) if event.ActionCommand == "UpdateAbbrev": self.mainForm.updateAbbrev(True) elif event.ActionCommand == "AddAbbrev": self.mainForm.addAbbrev() elif event.ActionCommand == "DeleteAbbrev": self.mainForm.deleteAbbrev() elif event.ActionCommand == "ChangeAllCaps": self.mainForm.changeAllCaps() elif event.ActionCommand == "Rescan": self.mainForm.rescan() elif event.ActionCommand == "InsertList": self.mainForm.insertList() elif event.ActionCommand == "FindNext": self.mainForm.findNext() elif event.ActionCommand == "Close": self.mainForm.dlgClose() else: evt_handler.raise_unknown_action(event.ActionCommand)