#NEWLINE# def __init__( self , scriptNode , parenting = None ) : #NEWLINE# #INDENT# self . __column = GafferUI . ListContainer ( borderWidth = 8 , spacing = 6 ) #NEWLINE# GafferUI . EditorWidget . __init__ ( self , self . __column , scriptNode , parenting = parenting ) #NEWLINE# with self . __column : #NEWLINE# #INDENT# with GafferUI . ListContainer ( GafferUI . ListContainer . Orientation . Horizontal , spacing = 6 ) : #NEWLINE# #INDENT# GafferUI . Label ( 'Location' ) #NEWLINE# modeMenu = GafferUI . MultiSelectionMenu ( allowMultipleSelection = False , allowEmptySelection = False ) #NEWLINE# for mode in self . __modes : #NEWLINE# #INDENT# modeMenu . append ( mode [ 0 ] ) #NEWLINE# #UNINDENT# self . __modeChangedConnection = modeMenu . selectionChangedSignal ( ) . connect ( Gaffer . WeakMethod ( self . __modeChanged ) ) #NEWLINE# #UNINDENT# self . __pathChooser = GafferUI . PathChooserWidget ( Gaffer . DictPath ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , '/' ) , previewTypes = GafferUI . PathPreviewWidget . types ( ) ) #NEWLINE# self . __pathChooser . pathWidget ( ) . setVisible ( False ) #NEWLINE# #UNINDENT# self . __modeInstances = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . __currentModeInstance = None #NEWLINE# modeMenu . setSelection ( [ self . __modes [ 0 ] [ 0 ] ] )