def __stateChanged(self, checkBox):
    invertEnabled = False
    with IECore.IgnoredExceptions(KeyError):
        invertEnabled = self.pathFilter().userData()['UI']['invertEnabled']
    self.pathFilter().setEnabled((checkBox.getState() is not invertEnabled))
def __stateChanged(self, checkBox):
    invertEnabled = False
    with IECore.IgnoredExceptions(KeyError):
        invertEnabled = self.pathFilter().userData()['UI']['invertEnabled']
    self.pathFilter().setEnabled((checkBox.getState() is not invertEnabled))