#NEWLINE# def build_gui( self , container ) : #NEWLINE# #INDENT# top = Widgets . VBox ( ) #NEWLINE# top . set_border_width ( 4 ) #NEWLINE# ( vbox , sw , orientation ) = Widgets . get_oriented_box ( container ) #NEWLINE# vbox . set_border_width ( 4 ) #NEWLINE# vbox . set_spacing ( 2 ) #NEWLINE# self . msgFont = self . fv . getFont ( 'sansFont' , 12 ) #NEWLINE# tw = Widgets . TextArea ( wrap = True , editable = False ) #NEWLINE# tw . set_font ( self . msgFont ) #NEWLINE# self . tw = tw #NEWLINE# fr = Widgets . Expander ( 'Instructions' ) #NEWLINE# fr . set_widget ( tw ) #NEWLINE# vbox . add_widget ( fr , stretch = 0 ) #NEWLINE# fr = Widgets . Frame ( 'WCS Match' ) #NEWLINE# captions = ( ( ' Reference Channel:' , 'label' , 'ref channel' , 'combobox' ) , ) #NEWLINE# ( w , b ) = Widgets . build_info ( captions , orientation = orientation ) #NEWLINE# self . w = b #NEWLINE# b . ref_channel . add_callback ( 'activated' , self . set_reference_channel_cb ) #NEWLINE# fr . set_widget ( w ) #NEWLINE# vbox . add_widget ( fr , stretch = 0 ) #NEWLINE# spacer = Widgets . Label ( '' ) #NEWLINE# vbox . add_widget ( spacer , stretch = 1 ) #NEWLINE# top . add_widget ( sw , stretch = 1 ) #NEWLINE# btns = Widgets . HBox ( ) #NEWLINE# btns . set_spacing ( 3 ) #NEWLINE# btn = Widgets . Button ( 'Close' ) #NEWLINE# btn . add_callback ( 'activated' , ( lambda w : self . close ( ) ) ) #NEWLINE# btns . add_widget ( btn , stretch = 0 ) #NEWLINE# btns . add_widget ( Widgets . Label ( '' ) , stretch = 1 ) #NEWLINE# top . add_widget ( btns , stretch = 0 ) #NEWLINE# container . add_widget ( top , stretch = 1 ) #NEWLINE# self . gui_up = True #NEWLINE# self . _reset_channels_gui ( )