

def setState(self, state):
    if (state == self.__state):
        return
    self.__state = state
    if (self.__state == self.State.Stopped):
        self.__playTimer.stop()
    elif (self.__state in (self.State.PlayingForwards, self.State.PlayingBackwards)):
        self.__playTimer.start()
    self.stateChangedSignal()(self)

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/Playback.py Playback.setState/original