#NEWLINE# def _connect( self ) : #NEWLINE# #INDENT# ui = self . ui #NEWLINE# ui . monochrome . toggled . connect ( self . _update_rgb_console ) #NEWLINE# ui . rgb_options . colors_changed . connect ( self . update_window_title ) #NEWLINE# ui . slice . slice_changed . connect ( ( lambda : setattr ( self , 'slice' , self . ui . slice . slice ) ) ) #NEWLINE# update_ui_slice = ( lambda val : setattr ( ui . slice , 'slice' , val ) ) #NEWLINE# add_callback ( self . client , 'slice' , update_ui_slice ) #NEWLINE# add_callback ( self . client , 'display_data' , self . ui . slice . set_data ) #NEWLINE# add_callback ( self . client , 'display_data' , nonpartial ( self . _display_data_changed ) ) #NEWLINE# add_callback ( self . client , 'display_attribute' , nonpartial ( self . _display_attribute_changed ) ) #NEWLINE# add_callback ( self . client , 'display_aspect' , nonpartial ( self . client . _update_aspect ) ) #NEWLINE# connect_current_combo ( self . client , 'display_data' , self . ui . displayDataCombo ) #NEWLINE# connect_current_combo ( self . client , 'display_attribute' , self . ui . attributeComboBox ) #NEWLINE# connect_current_combo ( self . client , 'display_aspect' , self . ui . aspectCombo )