(self)
| 111 | self.select_keys = select_keys |
| 112 | |
| 113 | def createSession(self): |
| 114 | if not (self.session_id and rime.find_session(self.session_id)): |
| 115 | self.session_id = rime.create_session() |
| 116 | self.style = RimeStyle(APP, self.session_id) |
| 117 | self.customizeUI(candFontSize = self.style.font_point, |
| 118 | candFontName = self.style.font_face, |
| 119 | candPerRow = self.style.candidate_per_row, |
| 120 | candUseCursor = self.style.candidate_use_cursor) |
| 121 | rime.set_option(self.session_id, b'soft_cursor', self.style.soft_cursor) |
| 122 | rime.set_option(self.session_id, b'_horizontal', self.style.candidate_per_row > 1) |
| 123 | |
| 124 | def onDeactivate(self): |
| 125 | TextService.onDeactivate(self) |
no test coverage detected