From 67a9d825c9d2a216ddda468c5f7fd5a9a8ebd2b9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 14 Feb 2014 19:37:41 +0100 Subject: add wait_period MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/__main__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/__main__.py') diff --git a/src/__main__.py b/src/__main__.py index 06373f1..729d879 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -24,6 +24,10 @@ def periodically(year, month, day, hour, minute, second, weekday, fade): ''' Invoked periodically + If you want to control at what to invoke this function next time + you can set the value of the global variable `wait_period` to the + number of seconds to wait before invocing this function again. + @param year:int The year @param month:int The month, 1 = January, 12 = December @param day:int The day, minimum value is 1, probable maximum value is 31 (*) @@ -65,7 +69,8 @@ def periodically(year, month, day, hour, minute, second, weekday, fade): ## Set globals accessible by rc periodically = None -global DATADIR, i_size, o_size, r_curve, g_curve, b_curve, clip_result, periodically +wait_period = 60 +global DATADIR, i_size, o_size, r_curve, g_curve, b_curve, clip_result, periodically, wait_period ## Load extension and configurations via ponysayrc -- cgit v1.2.3-70-g09d2