1 new commit in StationPlaylist:
https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/92e9a8b57b10/
Changeset: 92e9a8b57b10
Branch: 7.0/blueProfileTriggers
User: josephsl
Date: 2016-01-08 06:36:24+00:00
Summary: Trigger timer (7.0-dev): Changed timer API to match that of
wx.PyTimer.
Affected #: 2 files
diff --git a/addon/appModules/splstudio/splconfig.py
b/addon/appModules/splstudio/splconfig.py
index 607ee8a..bbca83f 100755
--- a/addon/appModules/splstudio/splconfig.py
+++ b/addon/appModules/splstudio/splconfig.py
@@ -424,7 +424,7 @@ def triggerStart(restart=False):
global SPLTriggerProfile, triggerTimer
# Restart the timer when called from triggers dialog in order to
prevent multiple timers from running.
if triggerTimer is not None and triggerTimer.IsRunning() and restart:
- triggerTimer.stop()
+ triggerTimer.Stop()
triggerTimer = None
queuedProfile = nextTimedProfile()
if queuedProfile is not None:
@@ -440,13 +440,13 @@ def triggerStart(restart=False):
if switchAfter.days == 0 and switchAfter.seconds <=
3600:
time.sleep((switchAfter.microseconds+1000) /
1000000.0)
triggerTimer =
SPLCountdownTimer(switchAfter.seconds, triggerProfileSwitch, 15)
- triggerTimer.start()
+ triggerTimer.Start()
# Dump profile triggers pickle away.
def saveProfileTriggers():
global triggerTimer, profileTriggers
if triggerTimer is not None and triggerTimer.IsRunning():
- triggerTimer.stop()
+ triggerTimer.Stop()
triggerTimer = None
cPickle.dump(profileTriggers, file(SPLTriggersFile, "wb"))
profileTriggers = None
diff --git a/addon/appModules/splstudio/splmisc.py
b/addon/appModules/splstudio/splmisc.py
index de14ff1..8462ea7 100755
--- a/addon/appModules/splstudio/splmisc.py
+++ b/addon/appModules/splstudio/splmisc.py
@@ -315,12 +315,12 @@ class SPLCountdownTimer(object):
self.func = func
self.threshold = threshold
- def start(self):
+ def Start(self):
self.timer = wx.PyTimer(self.countdown)
ui.message("Countdown started")
self.timer.Start(1000)
- def stop(self):
+ def Stop(self):
self.timer.Stop()
def IsRunning(self):
Repository URL: https://bitbucket.org/nvdaaddonteam/stationplaylist/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.