Ejemplo n.º 1
0
    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()
Ejemplo n.º 2
0
 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()