def onToggleSpeechViewerCommand(self, evt): if not speechViewer.isActive: speechViewer.activate() self.sysTrayIcon.menu_tools_toggleSpeechViewer.Check(True) else: speechViewer.deactivate() self.sysTrayIcon.menu_tools_toggleSpeechViewer.Check(False)
def onToggleSpeechViewerCommand(self, evt): if not speechViewer.isActive: speechViewer.activate() else: speechViewer.deactivate()