#NEWLINE# def __valueChanged( self , widget , reason ) : #NEWLINE# #INDENT# assert ( ( widget is self . __slider ) or ( widget is self . __frame ) ) #NEWLINE# if ( widget is self . __slider ) : #NEWLINE# #INDENT# frame = int ( self . __slider . getValue ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# frame = self . __frame . getValue ( ) #NEWLINE# #UNINDENT# frame = float ( max ( frame , self . scriptNode ( ) [ 'frameRange' ] [ 'start' ] . getValue ( ) ) ) #NEWLINE# frame = float ( min ( frame , self . scriptNode ( ) [ 'frameRange' ] [ 'end' ] . getValue ( ) ) ) #NEWLINE# if ( self == reason . DragBegin ) : #NEWLINE# #INDENT# self . __playback . setState ( self . __playback . State . Scrubbing ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( reason == reason . DragEnd ) : #NEWLINE# #INDENT# self . __playback . setState ( self . __playback . State . Stopped ) #NEWLINE# #UNINDENT# #UNINDENT# if ( widget is self . __frame ) : #NEWLINE# #INDENT# self . __frame . setValue ( frame ) #NEWLINE# #UNINDENT# self . getContext ( ) . setFrame ( frame )