#NEWLINE# def setPlan( self , plan ) : #NEWLINE# #INDENT# self . ui . playbackSlider . value = 0 #NEWLINE# self . ui . timeLabel . text = 'Time: 0.00 s' #NEWLINE# self . ui . planNameLabel . text = '' #NEWLINE# self . plan = plan #NEWLINE# self . endTime = 1.0 #NEWLINE# self . updateButtonColor ( ) #NEWLINE# if ( not self . plan ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# planText = ( 'Plan: %d.  %.2f seconds' % ( plan . utime , self . planPlayback . getPlanElapsedTime ( plan ) ) ) #NEWLINE# self . ui . planNameLabel . text = planText #NEWLINE# self . startTime = 0.0 #NEWLINE# self . endTime = self . planPlayback . getPlanElapsedTime ( plan ) #NEWLINE# self . interpolationChanged ( ) #NEWLINE# info = self . getPlanInfo ( plan ) #NEWLINE# app . displaySnoptInfo ( info ) #NEWLINE# if ( self . ui . hideButton . text == 'show' ) : #NEWLINE# #INDENT# self . hideClicked ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . viewModeChanged ( ) #NEWLINE# #UNINDENT# self . updateButtonColor ( ) #NEWLINE# if ( self . autoPlay and ( self . widget . parent ( ) is not None ) ) : #NEWLINE# #INDENT# self . widget . parent ( ) . show ( )