<s> """<STR_LIT>""" <EOL> from ginga import GingaPlugin <EOL> from ginga . gw import Widgets <EOL> class MyLocalPlugin ( GingaPlugin . LocalPlugin ) : <EOL> def __init__ ( self , fv , fitsimage ) : <EOL> """<STR_LIT>""" <EOL> super ( MyLocalPlugin , self ) . __init__ ( fv , fitsimage ) <EOL> def build_gui ( self , container ) : <EOL> """<STR_LIT>""" <EOL> top = Widgets . VBox ( ) <EOL> top . set_border_width ( <NUM_LIT:4> ) <EOL> vbox , sw , orientation = Widgets . get_oriented_box ( container ) <EOL> vbox . set_border_width ( <NUM_LIT:4> ) <EOL> vbox . set_spacing ( <NUM_LIT:2> ) <EOL> self . msgFont = self . fv . getFont ( "<STR_LIT>" , <NUM_LIT:12> ) <EOL> tw = Widgets . TextArea ( wrap = True , editable = False ) <EOL> tw . set_font ( self . msgFont ) <EOL> self . tw = tw <EOL> fr = Widgets . Expander ( "<STR_LIT>" ) <EOL> fr . set_widget ( tw ) <EOL> vbox . add_widget ( fr , stretch = <NUM_LIT:0> ) <EOL> spacer = Widgets . Label ( '<STR_LIT>' ) <EOL> vbox . add_widget ( spacer , stretch = <NUM_LIT:1> ) <EOL> top . add_widget ( sw , stretch = <NUM_LIT:1> ) <EOL> btns = Widgets . HBox ( ) <EOL> btns . set_spacing ( <NUM_LIT:3> ) <EOL> btn = Widgets . Button ( "<STR_LIT>" ) <EOL> btn . add_callback ( '<STR_LIT>' , lambda w : self . close ( ) ) <EOL> btns . add_widget ( btn , stretch = <NUM_LIT:0> ) <EOL> btns . add_widget ( Widgets . Label ( '<STR_LIT>' ) , stretch = <NUM_LIT:1> ) <EOL> top . add_widget ( btns , stretch = <NUM_LIT:0> ) <EOL> container . add_widget ( top , stretch = <NUM_LIT:1> ) <EOL> def close ( self ) : <EOL> """<STR_LIT>""" <EOL> self . fv . stop_local_plugin ( self . chname , str ( self ) ) <EOL> return True <EOL> def start ( self ) : <EOL> """<STR_LIT>""" <EOL> self . tw . set_text ( """<STR_LIT>""" ) <EOL> self . resume ( ) <EOL> def pause ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def resume ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def stop ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def redo ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def __str__ ( self ) : <EOL> """<STR_LIT>""" <EOL> return '<STR_LIT>' </s>
