MCPcopy Create free account
hub / github.com/PlayOnLinux/POL-POM-4 / StatusRead

Method StatusRead

python/mainwindow.py:543–575  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

541 self.Timer_LastIconList = currentIcons
542
543 def StatusRead(self):
544 self.sb.SetStatusText(self.updater.sendToStatusBarStr, 0)
545 if (self.updater.Gauge == True):
546 perc = self.updater.perc
547 if (perc == -1):
548 self.jauge_update.Pulse()
549 else:
550 try:
551 self.installFrame.percentageText.SetLabel(str(perc) + " %")
552 except:
553 pass
554 self.jauge_update.SetValue(perc)
555 self.jauge_update.Show()
556 else:
557 self.jauge_update.Hide()
558
559 try:
560 if (self.updater.updating == True):
561 self.sb.Show()
562 ## TODO: Refactor
563 self.installFrame.setWaitState(True)
564 else:
565 self.sb.Hide()
566 self.installFrame.setWaitState(False)
567 self.installFrame.Refresh()
568 except RuntimeError:
569 pass
570 except AttributeError: # FIXME: Install Frame is not opened
571 pass
572
573 if (self.updater.sendAlertStr != self.sendAlertStr):
574 wx.MessageBox(self.updater.sendAlertStr, os.environ["APPLICATION_TITLE"], wx.OK | wx.CENTER, self)
575 self.sendAlertStr = self.updater.sendAlertStr
576
577 def RMBInGameList(self, event):
578 self.GameListPopUpMenu = wx.Menu()

Callers 1

TimerActionMethod · 0.95

Calls 1

setWaitStateMethod · 0.80

Tested by

no test coverage detected