Ejemplo n.º 1
0
 def onOk(self, evt):
     config.conf["brailleExtender"]["outputTables"] = ','.join(self.oTables)
     config.conf["brailleExtender"]["inputTables"] = ','.join(self.iTables)
     configBE.loadPreferedTables()
     config.conf["brailleExtender"][
         "inputTableShortcuts"] = configBE.tablesUFN[
             self.inputTableShortcuts.GetSelection() -
             1] if self.inputTableShortcuts.GetSelection() > 0 else '?'
     postTableID = self.postTable.GetSelection()
     postTable = "None" if postTableID == 0 else configBE.tablesFN[
         postTableID]
     config.conf["brailleExtender"]["postTable"] = postTable
     configBE.loadPostTable()
     config.conf["brailleExtender"]["tabSpace"] = self.tabSpace.IsChecked()
     config.conf["brailleExtender"]["tabSize_%s" %
                                    configBE.curBD] = self.tabSize.Value
     config.conf["brailleExtender"][
         "preventUndefinedCharHex"] = self.preventUndefinedCharHex.IsChecked(
         )
     repr = re.sub("[^0-8\-]", "", self.undefinedCharRepr.Value)
     repr = re.sub('\-+', '-', repr)
     if not repr or repr.startswith('-') or repr.endswith('-'): repr = "0"
     config.conf["brailleExtender"]["undefinedCharRepr"] = repr
     configBE.loadPreTable()
     configBE.loadPostTable()
     super(BrailleTablesDlg, self).onOk(evt)
Ejemplo n.º 2
0
 def onOk(self, evt):
     config.conf["brailleExtender"]["outputTables"] = ','.join(self.oTables)
     config.conf["brailleExtender"]["inputTables"] = ','.join(self.iTables)
     configBE.loadPreferedTables()
     config.conf["brailleExtender"][
         "inputTableShortcuts"] = configBE.tablesUFN[
             self.inputTableShortcuts.GetSelection() -
             1] if self.inputTableShortcuts.GetSelection() > 0 else '?'
     postTableID = self.postTable.GetSelection()
     postTable = "None" if postTableID == 0 else configBE.tablesFN[
         postTableID]
     config.conf["brailleExtender"]["postTable"] = postTable
     configBE.loadPostTable()
     config.conf["brailleExtender"]["tabSpace"] = self.tabSpace.IsChecked()
     config.conf["brailleExtender"]["tabSize_%s" %
                                    configBE.curBD] = self.tabSize.Value
     configBE.loadPreTable()
     super(BrailleTablesDlg, self).onOk(evt)
Ejemplo n.º 3
0
            else:
                return
        dest.collapse()
        self._setCursor(dest)
        queueHandler.queueFunction(queueHandler.eventQueue,
                                   speech.cancelSpeech)
        queueHandler.queueFunction(queueHandler.eventQueue, sayCurrentLine)
    except BaseException as e:
        pass


braille.TextInfoRegion.previousLine = previousLine
braille.TextInfoRegion.nextLine = nextLine

configBE.loadPostTable()
configBE.loadPreTable()
backupUpdate = braille.Region.update
braille.Region.update = update

script_braille_routeTo.__doc__ = _(
    "Routes the cursor to or activates the object under this braille cell")
globalCommands.GlobalCommands.script_braille_routeTo = script_braille_routeTo


def executeGesture(self, gesture):
    """Perform the action associated with a gesture.
		@param gesture: The gesture to execute.
		@type gesture: L{InputGesture}
		@raise NoInputGestureAction: If there is no action to perform.
		"""
    if watchdog.isAttemptingRecovery: