#NEWLINE# def test_waveform_view( qtbot , gui ) : #NEWLINE# #INDENT# v = gui . controller . add_waveform_view ( gui ) #NEWLINE# _select_clusters ( gui ) #NEWLINE# ac ( v . boxed . box_size , ( 0.1818 , 0.0909 ) , atol = 0.01 ) #NEWLINE# v . toggle_waveform_overlap ( ) #NEWLINE# v . toggle_waveform_overlap ( ) #NEWLINE# v . toggle_zoom_on_channels ( ) #NEWLINE# v . toggle_zoom_on_channels ( ) #NEWLINE# v . toggle_show_labels ( ) #NEWLINE# assert ( not v . do_show_labels ) #NEWLINE# bs = v . boxed . box_size #NEWLINE# v . increase ( ) #NEWLINE# v . decrease ( ) #NEWLINE# ac ( v . boxed . box_size , bs ) #NEWLINE# bs = v . boxed . box_size #NEWLINE# v . widen ( ) #NEWLINE# v . narrow ( ) #NEWLINE# ac ( v . boxed . box_size , bs ) #NEWLINE# bp = v . boxed . box_pos #NEWLINE# v . extend_horizontally ( ) #NEWLINE# v . shrink_horizontally ( ) #NEWLINE# ac ( v . boxed . box_pos , bp ) #NEWLINE# bp = v . boxed . box_pos #NEWLINE# v . extend_vertically ( ) #NEWLINE# v . shrink_vertically ( ) #NEWLINE# ac ( v . boxed . box_pos , bp ) #NEWLINE# ( a , b ) = v . probe_scaling #NEWLINE# v . probe_scaling = ( a , ( b * 2 ) ) #NEWLINE# ac ( gui . probe_scaling , ( a , ( b * 2 ) ) ) #NEWLINE# ( a , b ) = v . box_scaling #NEWLINE# v . box_scaling = ( ( a * 2 ) , b ) #NEWLINE# ac ( v . box_scaling , ( ( a * 2 ) , b ) ) #NEWLINE# v . zoom_on_channels ( [ 0 , 2 , 4 ] ) #NEWLINE# _clicked = [ ] #NEWLINE# @ v . gui . connect_ #NEWLINE# def on_channel_click( channel_idx = None , button = None , key = None ) : #NEWLINE# #INDENT# _clicked . append ( ( channel_idx , button , key ) ) #NEWLINE# #UNINDENT# v . events . key_press ( key = keys . Key ( '2' ) ) #NEWLINE# v . events . mouse_press ( pos = ( 0.0 , 0.0 ) , button = 1 ) #NEWLINE# v . events . key_release ( key = keys . Key ( '2' ) ) #NEWLINE# assert ( _clicked == [ ( 0 , 1 , 2 ) ] ) #NEWLINE# v . next_data ( ) #NEWLINE# gui . close ( )