#NEWLINE# def __init__( self , text = '' , editable = True ) : #NEWLINE# #INDENT# super ( TextEntrySet , self ) . __init__ ( ) #NEWLINE# hbox = gtk . HBox ( ) #NEWLINE# hbox . set_spacing ( 4 ) #NEWLINE# w = gtk . Entry ( ) #NEWLINE# w . set_text ( text ) #NEWLINE# w . set_editable ( editable ) #NEWLINE# hbox . pack_start ( w , fill = True ) #NEWLINE# w . connect ( 'activate' , self . _cb_redirect ) #NEWLINE# self . entry = w #NEWLINE# w = gtk . Button ( 'Set' ) #NEWLINE# w . connect ( 'clicked' , self . _cb_redirect ) #NEWLINE# hbox . pack_start ( w , fill = False ) #NEWLINE# self . btn = w #NEWLINE# self . widget = hbox #NEWLINE# self . enable_callback ( 'activated' )