(self, cbTS, outputSimpChinese)
| 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 | # 按下「`」鍵的選單命令 |
no test coverage detected