Beispiel #1
0
 def set_getword_config(self, key, value):
     setting_config.set_getword(key, value)
     if key == "ocr":
         mode = setting_config.get_getword("ocr_mode")
         self.onscreenTransStateChange.emit([value, mode])
     elif key == "stroke":
         mode = setting_config.get_getword("stroke_mode")
         self.onwordStrokeStateChange.emit([value, mode])
Beispiel #2
0
 def strokeEnabled(self):
     enable = setting_config.get_getword("stroke")
     return enable
Beispiel #3
0
 def ocrEnabled(self):
     enable = setting_config.get_getword("ocr")
     return enable
Beispiel #4
0
 def initOcrState(self):
     enable = setting_config.get_getword("ocr")
     mode = setting_config.get_getword("ocr_mode")
     self.getword_daemon.SetOcrEnable(enable)
     self._ocrEnableNotify.emit()
     self.onscreenTransStateChange.emit([enable, mode])
Beispiel #5
0
 def initStrokeState(self):
     enable = setting_config.get_getword("stroke")
     mode = setting_config.get_getword("stroke_mode")
     self.getword_daemon.SetStrokeEnable(enable)
     self._strokeEnableNotify.emit()
     self.onwordStrokeStateChange.emit([enable, mode])