コード例 #1
0
 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)
コード例 #2
0
    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)
コード例 #3
0
def setFontSize(newScale, newWidth):
    global fontScale, fontWidth
    fontScale = float(newScale or 1.0)
    fontWidth = float(newWidth or 1.0)
    runOnMainThread(doFontChange)
コード例 #4
0
 def __init__(self):
     runOnMainThread(self.checkUnreadNotifications)
コード例 #5
0
ファイル: fontsizer.py プロジェクト: Sancus/shootbluesscripts
def setFontSize(newScale, newWidth):
    global fontScale, fontWidth
    fontScale = float(newScale or 1.0)
    fontWidth = float(newWidth or 1.0)
    runOnMainThread(doFontChange)
コード例 #6
0
 def __init__(self):
     runOnMainThread(self.checkUnreadNotifications)
コード例 #7
0
 def __init__(self):
     self.forceFields = []
     self.objectCache = {}
     
     runOnMainThread(self.populateBalls)