コード例 #1
0
	def getLength(self):
		player = self.source.player
		length = player and player.getLength()
		if length:
			return length
		# Fallback
		return ServicePosition.getLength(self)
コード例 #2
0
	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)
コード例 #4
0
	def getPosition(self):
		player = self.source.player
		position = player and player.getPosition()
		if position:
			return position
		# Fallback
		return ServicePosition.getPosition(self)
コード例 #5
0
 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!
コード例 #7
0
	def __init__(self, type):
		ServicePosition.__init__(self, type)