Exemplo n.º 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])
Exemplo n.º 2
0
 def strokeEnabled(self):
     enable = setting_config.get_getword("stroke")
     return enable
Exemplo n.º 3
0
 def ocrEnabled(self):
     enable = setting_config.get_getword("ocr")
     return enable
Exemplo n.º 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])
Exemplo n.º 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])