#NEWLINE# def create_gui( self , name = None , subtitle = None , config_dir = None , add_default_views = True , **kwargs ) : #NEWLINE# #INDENT# 'Create a manual clustering GUI.' #NEWLINE# config_dir = ( config_dir or self . config_dir ) #NEWLINE# gui = GUI ( name = ( name or self . gui_name ) , subtitle = subtitle , config_dir = config_dir , ** kwargs ) #NEWLINE# gui . controller = self #NEWLINE# self . manual_clustering . attach ( gui ) #NEWLINE# if add_default_views : #NEWLINE# #INDENT# self . add_correlogram_view ( gui ) #NEWLINE# if ( self . all_features is not None ) : #NEWLINE# #INDENT# self . add_feature_view ( gui ) #NEWLINE# #UNINDENT# if ( self . all_waveforms is not None ) : #NEWLINE# #INDENT# self . add_waveform_view ( gui ) #NEWLINE# #UNINDENT# if ( self . all_traces is not None ) : #NEWLINE# #INDENT# self . add_trace_view ( gui ) #NEWLINE# #UNINDENT# #UNINDENT# self . emit ( 'create_gui' , gui ) #NEWLINE# return kwargs