def getLength(self):
		player = self.source.player
		length = player and player.getLength()
		if length:
			return length
		# Fallback
		return ServicePosition.getLength(self)
	def getPosition(self):
		player = self.source.player
		position = player and player.getPosition()
		if position:
			return position
		# Fallback
		return ServicePosition.getPosition(self)
 def getLength(self):
     player = self.source.player
     length = player and player.getLength()
     if length:
         return length
     # Fallback
     return ServicePosition.getLength(self)
	def getPosition(self):
		player = self.source.player
		position = player and player.getPosition()
		if position:
			return position
		# Fallback
		return ServicePosition.getPosition(self)
 def __init__(self, type):
     ServicePosition.__init__(self, type)
Пример #6
0
	def __init__(self, type):
		ServicePosition.__init__(self, type)
		self.doSuspend(1) #Stop the poll timer that ServicePosition.__init__(...) starts!
	def __init__(self, type):
		ServicePosition.__init__(self, type)