summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-14 19:59:58 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-14 19:59:58 +0100
commitc46eb84ddd0ca89b3e9a35146d6f89798698d53b (patch)
tree96d3afaad39b840afd147fdc5b898c39cc02f3be /src
parentadd monitor control without native binding (diff)
downloadblueshift-c46eb84ddd0ca89b3e9a35146d6f89798698d53b.tar.gz
blueshift-c46eb84ddd0ca89b3e9a35146d6f89798698d53b.tar.bz2
blueshift-c46eb84ddd0ca89b3e9a35146d6f89798698d53b.tar.xz
doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/__main__.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 5185e81..8cf70ae 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -27,7 +27,7 @@ def periodically(year, month, day, hour, minute, second, weekday, fade):
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.
+ number of seconds to wait before invoking this function again.
The value does not need to be an integer.
@param year:int The year
@@ -69,10 +69,23 @@ def periodically(year, month, day, hour, minute, second, weekday, fade):
-## Set globals variables
periodically = None
+'''
+:(int, int, int, int, int, int, int, float?)?→void Place holder for periodically invoked function
+'''
+
wait_period = 60
+'''
+:float The number of seconds to wait before invoking `periodically` again
+'''
+
monitor_controller = lambda : randr()
+'''
+:()→void Function used by Blueshift on exit to apply reset colour curves
+'''
+
+
+## Set globals variables
global DATADIR, i_size, o_size, r_curve, g_curve, b_curve, clip_result
global periodically, wait_period, monitor_controller