def onLangProfileActivated(self, msg): guid = msg["guid"] service = textServiceMgr.createService(self, guid) self.service = service # activate the new text service if service: self.currentReply = service.handleRequest(msg)
def init(self, msg): self.guid = msg["id"] self.isWindows8Above = msg["isWindows8Above"] self.isMetroApp = msg["isMetroApp"] self.isUiLess = msg["isUiLess"] self.isUiLess = msg["isConsole"] # create the text service self.service = textServiceMgr.createService(self, self.guid) return (self.service is not None)
def onLangProfileActivated(self, guid): service = self.service # deactivate the current text service if service: service.onDeactivate() service = textServiceMgr.createService(self, guid) self.service = service # activate the new text service if service: service.onActivate()