diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-14 19:37:41 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-14 19:37:41 +0100 |
commit | 67a9d825c9d2a216ddda468c5f7fd5a9a8ebd2b9 (patch) | |
tree | 8680269fc9a63059f50039b28af7b103220298c5 /src/__main__.py | |
parent | add parameter fade to periodically (diff) | |
download | blueshift-67a9d825c9d2a216ddda468c5f7fd5a9a8ebd2b9.tar.gz blueshift-67a9d825c9d2a216ddda468c5f7fd5a9a8ebd2b9.tar.bz2 blueshift-67a9d825c9d2a216ddda468c5f7fd5a9a8ebd2b9.tar.xz |
add wait_period
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-x | src/__main__.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 |