#NEWLINE# def set_widget( self , widget ) : #NEWLINE# #INDENT# self . infoLabel . set_text ( ( 'Selected widget: %s' % widget . attributes [ 'editor_varname' ] ) ) #NEWLINE# self . attributes [ 'selected_widget_id' ] = str ( id ( widget ) ) #NEWLINE# self . targetWidget = widget #NEWLINE# for w in self . attributesInputs : #NEWLINE# #INDENT# w . set_from_dict ( getattr ( widget , w . attributeDict [ 'affected_widget_attribute' ] ) )