def __init__(self): self.disabled = False self.__updateTimer = SafeTimer(1000, self.updateTargets) self.__repopulateEligible = SafeTimer(60000, self.populateEligibleBalls) self.__balls = {} self.__eligibleBalls = set() self.__lockedTargets = set() runOnMainThread(self.populateBalls)
def setFontSize(newScale, newWidth): global fontScale, fontWidth fontScale = float(newScale or 1.0) fontWidth = float(newWidth or 1.0) runOnMainThread(doFontChange)
def __init__(self): runOnMainThread(self.checkUnreadNotifications)
def __init__(self): self.forceFields = [] self.objectCache = {} runOnMainThread(self.populateBalls)