def onRecordStartBtn(self): if not Recorder.get().HasBeenSaved() and Recorder.get().GetRecordedCount()>0: response = GuiMgr.MessageBox_OkCancel("Restart Recording?","You have not saved the current recorded data. OK to Discard?") if False == response: return GuiMgr.OnStartRecording()
def onLiveStartBtn(self): if not Recorder.get().HasBeenSaved() and Recorder.get().GetRecordedCount()>0: response = GuiMgr.MessageBox_OkCancel("Warning","You have not saved the current recorded data. OK to Discard?") if False == response: return GuiMgr.OnStartLiveData() GuiMgr.SetPlaybackFilename("")
def HandleExit(self): if not Recorder.get().HasBeenSaved( ) and Recorder.get().GetRecordedCount() > 0: response = GuiMgr.MessageBox_OkCancel( "Warning", "You have not saved the current recorded data. OK to Discard?" ) if False == response: return GuiMgr.Quit()