(self, cbTS, menutype)
| 2631 | |
| 2632 | |
| 2633 | def switchMenuCand(self, cbTS, menutype): |
| 2634 | if menutype == 0: |
| 2635 | menu_OutputSimpChinese = "輸出繁體" if cbTS.outputSimpChinese else "輸出簡體" |
| 2636 | cbTS.menucandidates = ["功能設定", menu_OutputSimpChinese, "功能開關", "特殊符號", "注音符號", "外語文字", "表情符號"] |
| 2637 | if menutype == 2: |
| 2638 | cbTS.menucandidates = cbTS.symbols.getKeyNames() |
| 2639 | if menutype == 5: |
| 2640 | cbTS.menucandidates = cbTS.menucandidates = cbTS.flangs.getKeyNames() |
| 2641 | if menutype == 7: |
| 2642 | cbTS.menucandidates = self.emojimenulist |
| 2643 | if menutype == 8: |
| 2644 | if cbTS.emojitype == 0: |
| 2645 | cbTS.menucandidates = self.emoji.emoticons_keynames |
| 2646 | elif cbTS.emojitype == 1: |
| 2647 | cbTS.menucandidates = self.emoji.pictographs_keynames |
| 2648 | elif cbTS.emojitype == 2: |
| 2649 | cbTS.menucandidates = self.emoji.miscellaneous_keynames |
| 2650 | elif cbTS.emojitype == 3: |
| 2651 | cbTS.menucandidates = self.emoji.dingbats_keynames |
| 2652 | elif cbTS.emojitype == 4: |
| 2653 | cbTS.menucandidates = self.emoji.transport_keynames |
| 2654 | elif cbTS.emojitype == 5: |
| 2655 | cbTS.menucandidates = self.emoji.modifiercolor |
| 2656 | |
| 2657 | pagecandidates = list(self.chunks(cbTS.menucandidates, cbTS.candPerPage)) |
| 2658 | return pagecandidates |
| 2659 | |
| 2660 | |
| 2661 | # 重置輸入的字根 |
no test coverage detected