

def __selectionChanged(self, selection, member):
    if (not selection.size()):
        self.__xPlugWidget.setPlug(None)
        self.__yPlugWidget.setPlug(None)
    else:
        selectedPlug = selection[(- 1)]
        self.__xPlugWidget.setPlug(selectedPlug['x'])
        self.__yPlugWidget.setPlug(selectedPlug['y'])

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/SplineEditor.py SplineEditor.__selectionChanged/original