コード例 #1
0
ファイル: guiMain.py プロジェクト: Xifax/suzu_ei
 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()
コード例 #2
0
ファイル: guiMain.py プロジェクト: Xifax/suzu_ei
    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()