code/vexptoolbox/replay.py
def _set_ui(self):
        """ Update GUI elements to display status (if enabled) """
        if self._ui is not None:

            if len(self._samples) == 0:
                self._ui_bar.message('No data')
            
            elif self._frame < len(self._samples):
                self._ui_bar.set(float(self._frame)/float(len(self._samples)))
                self._ui_bar.message('{:d}/{:d}'.format(self._frame+1, len(self._samples)))

                t = self._samples[self._frame]['time'] - self._sample_time_offset
                if t > 10000:
                    self._ui_time.message('{:.1f} s'.format(t/1000.0))
                else:
                    self._ui_time.message('{:.1f} ms'.format(t))
            
            if self.replaying and self._ui_play.getMessage() != 'Pause Replay':
                self._ui_play.message('Pause Replay')
            elif not self.replaying and self._ui_play.getMessage() != 'Start Replay':
                self._ui_play.message('Start Replay')
 Update GUI elements to display status (if enabled) 
Update GUI elements to display status (if enabled)
Update GUI elements to display status ( if enabled )
def _set_ui(self):
        if self._ui is not None:
            if len(self._samples) == 0:
                self._ui_bar.message('No data')
            elif self._frame < len(self._samples):
                self._ui_bar.set(float(self._frame)/float(len(self._samples)))
                self._ui_bar.message('{:d}/{:d}'.format(self._frame+1, len(self._samples)))
                t = self._samples[self._frame]['time'] - self._sample_time_offset
                if t > 10000:
                    self._ui_time.message('{:.1f} s'.format(t/1000.0))
                else:
                    self._ui_time.message('{:.1f} ms'.format(t))
            if self.replaying and self._ui_play.getMessage() != 'Pause Replay':
                self._ui_play.message('Pause Replay')
            elif not self.replaying and self._ui_play.getMessage() != 'Start Replay':
                self._ui_play.message('Start Replay')
def _set_ui ( self ) : if self . _ui is not None : if len ( self . _samples ) == 0 : self . _ui_bar . message ( 'No data' ) elif self . _frame < len ( self . _samples ) : self . _ui_bar . set ( float ( self . _frame ) / float ( len ( self . _samples ) ) ) self . _ui_bar . message ( '{:d}/{:d}' . format ( self . _frame + 1 , len ( self . _samples ) ) ) t = self . _samples [ self . _frame ] [ 'time' ] - self . _sample_time_offset if t > 10000 : self . _ui_time . message ( '{:.1f} s' . format ( t / 1000.0 ) ) else : self . _ui_time . message ( '{:.1f} ms' . format ( t ) ) if self . replaying and self . _ui_play . getMessage ( ) != 'Pause Replay' : self . _ui_play . message ( 'Pause Replay' ) elif not self . replaying and self . _ui_play . getMessage ( ) != 'Start Replay' : self . _ui_play . message ( 'Start Replay' )
Update GUI elements to display status (if enabled)
Update GUI elements to display status ( if enabled )
""" Update GUI elements to display status (if enabled) """
self