MCPcopy Create free account
hub / github.com/EasyIME/PIME / __init__

Method __init__

python/input_methods/chewing/chewing_ime.py:79–104  ·  view source on GitHub ↗
(self, client)

Source from the content-addressed store, hash-verified

77
78class ChewingTextService(TextService):
79 def __init__(self, client):
80 TextService.__init__(self, client)
81 self.curdir = os.path.abspath(os.path.dirname(__file__))
82 self.icon_dir = os.path.join(self.curdir, "icons")
83 self.chewingContext = None # libchewing context
84
85 self.langMode = -1
86 self.shapeMode = -1
87 self.outputSimpChinese = False
88
89 # remember last state when the input method is temporarily closed
90 self.lastLangMode = None
91 self.lastShapeMode = None
92 self.lastOutputSimpChinese = None
93
94 self.lastKeyDownTime = 0.0
95 self.lastKeyEvent = None
96
97 self.configVersion = chewingConfig.getVersion()
98
99 # 使用 OpenCC 繁體中文轉簡體
100 self.opencc = None
101
102 # has language buttons
103 self.hasLangButtons = False
104 self.updateSwitchLangIcon = False # 更新 中/英 切換 icon
105
106 # 檢查設定檔是否有被更改,是否需要套用新設定
107 def checkConfigChange(self):

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
getVersionMethod · 0.45

Tested by

no test coverage detected