#NEWLINE# def _updateFromPathFilter( self ) : #NEWLINE# #INDENT# editable = False #NEWLINE# with IECore . IgnoredExceptions ( KeyError ) : #NEWLINE# #INDENT# editable = self . pathFilter ( ) . userData ( ) [ 'UI' ] [ 'editable' ] . value #NEWLINE# #UNINDENT# self . __enabledWidget . setVisible ( ( not editable ) ) #NEWLINE# self . __propertyButton . setVisible ( editable ) #NEWLINE# self . __patternWidget . setVisible ( editable ) #NEWLINE# label = str ( self . pathFilter ( ) ) #NEWLINE# with IECore . IgnoredExceptions ( KeyError ) : #NEWLINE# #INDENT# label = self . pathFilter ( ) . userData ( ) [ 'UI' ] [ 'label' ] . value #NEWLINE# #UNINDENT# self . __enabledWidget . setText ( label ) #NEWLINE# invertEnabled = False #NEWLINE# with IECore . IgnoredExceptions ( KeyError ) : #NEWLINE# #INDENT# invertEnabled = self . pathFilter ( ) . userData ( ) [ 'UI' ] [ 'invertEnabled' ] . value #NEWLINE# #UNINDENT# self . __enabledWidget . setState ( ( self . pathFilter ( ) . getEnabled ( ) is not invertEnabled ) ) #NEWLINE# self . __patternWidget . setText ( ' ' . join ( self . pathFilter ( ) . getMatchPatterns ( ) ) )