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

Method setOutputSimplifiedChinese

python/cinbase/__init__.py:2567–2575  ·  view source on GitHub ↗
(self, cbTS, outputSimpChinese)

Source from the content-addressed store, hash-verified

2565
2566 # 設定輸出成簡體中文
2567 def setOutputSimplifiedChinese(self, cbTS, outputSimpChinese):
2568 cbTS.outputSimpChinese = outputSimpChinese
2569 # 建立 OpenCC instance 用來做繁簡體中文轉換
2570 if outputSimpChinese:
2571 if not cbTS.opencc:
2572 cbTS.opencc = opencc.OpenCC(opencc.OPENCC_DEFAULT_CONFIG_TRAD_TO_SIMP)
2573 else:
2574 cbTS.opencc = None
2575 self.updateLangButtons(cbTS)
2576
2577
2578 # 按下「`」鍵的選單命令

Callers 4

filterKeyUpMethod · 0.95
onCommandMethod · 0.95
onMenuCommandMethod · 0.95
applyConfigMethod · 0.95

Calls 1

updateLangButtonsMethod · 0.95

Tested by

no test coverage detected