Ejemplo n.º 1
0
 def fade(self):
     if self.windowOpacity() == 1:
         self.animationTimer = RepeatTimer(0.025, self.fadeOut, 40)
         self.animationTimer.start()
     else:
         self.animationTimer = RepeatTimer(0.025, self.fadeIn, 40)
         self.animationTimer.start()
Ejemplo n.º 2
0
    def beginCountdown(self):
        self.trayIcon.setToolTip('Quiz in progress!')
        self.pauseAction.setText('&Pause')
        self.pauseAction.setShortcut('P')

        self.countdownTimer.start(self.options.getCountdownInterval() * 1000)

        self.progressTimer = RepeatTimer(
            0.01, self.updateCountdownBar,
            self.options.getCountdownInterval() * 100)
        self.progressTimer.start()