Esempio n. 1
0
 def Redraw(self):
     #self.CheckBatteryStat()
     #self.SyncSoundVolume()
     #self.CheckBluetooth()
     #self.UpdateWifiStrength()
     self.UpdateDownloadStatus()
     SwapAndShow()
Esempio n. 2
0
    def GObjectRoundRobin(self):
        if self._InLowBackLight < 0:
            self.CheckBatteryStat()
            self.SyncSoundVolume()
            self.UpdateWifiStrength()
            SwapAndShow()
        else:
            self._InLowBackLight += 1

            if self._InLowBackLight > 10:
                self.CheckBatteryStat()
                self.SyncSoundVolume()
                self.UpdateWifiStrength()
                SwapAndShow()
                self._InLowBackLight = 0

        return True
Esempio n. 3
0
 def SwapAndShow(self):
     if self._Closed == True:
         return
     if self._HWND != None:
         self._HWND.blit(
             self._CanvasHWND,
             (self._PosX, self._PosY, self._Width, self._Height))
         SwapAndShow()
    def GObjectRoundRobin(self):
        if self._InLowBackLight < 0:
            self.CheckBatteryStat()
            self.SyncSoundVolume()
            self.CheckBluetooth()
            self.UpdateWifiStrength()

            SwapAndShow()
#            print("TitleBar Gobjectroundrobin")
        elif self._InLowBackLight >= 0:
            self._InLowBackLight += 1
            if self._InLowBackLight > 10:
                self.CheckBatteryStat()
                self.SyncSoundVolume()
                self.CheckBluetooth()
                self.UpdateWifiStrength()
                SwapAndShow()
                self._InLowBackLight = 0

        return True