From 45164193c322c84366fbde35db544cf005bf20dc Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sat, 26 Nov 2005 05:04:39 +0000 Subject: the record.png blinks now whenever a timerentry in the recordingtimer is running --- RecordTimer.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'RecordTimer.py') diff --git a/RecordTimer.py b/RecordTimer.py index 45a21aeb..13407958 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -103,6 +103,13 @@ class RecordTimer(timer.Timer): self.loadTimer() except: print "unable to load timers from file!" + + def isRecording(self): + isRunning = False + for timer in self.timer_list: + if timer.isRunning(): + isRunning = True + return isRunning def loadTimer(self): # TODO: PATH! -- cgit v1.2.3