def __incrementFrame( self, increment ) :

		frame = self.context().getFrame() + increment
		if frame > self.__frameRange[1] :
			frame = self.__frameRange[0] + ( frame - math.floor( frame ) )
		elif frame < self.__frameRange[0] :
			frame = self.__frameRange[1] + ( frame - math.floor( frame ) )

		self.context().setFrame( frame )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/Playback.py/Playback.__incrementFrame/original