From 12546736a6f7dfa745a7594508e59fda955bf57b Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Sat, 20 Dec 2014 15:46:34 +0100 Subject: [PATCH] Fix in documentation --- i3pystatus/core/modules.py | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/i3pystatus/core/modules.py b/i3pystatus/core/modules.py index 79367c6..152f754 100644 --- a/i3pystatus/core/modules.py +++ b/i3pystatus/core/modules.py @@ -47,17 +47,19 @@ class Module(SettingsBase): 'on_rightclick', 'on_upscroll', 'on_downscroll'. For instance, you can test with: - status.register("clock", - format=[ - ("Format 0",'Europe/London'), - ("%a %-d Format 1",'Europe/Dublin'), - "%a %-d %b %X format 2", - ("%a %-d %b %X format 3", 'Europe/Paris'), - ], - on_leftclick= ["urxvtc"] , # launch urxvtc on left click - on_rightclick= ["scroll_format", 2] , # update format by steps of 2 - log_level=logging.DEBUG, - ) + :: + + status.register("clock", + format=[ + ("Format 0",'Europe/London'), + ("%a %-d Format 1",'Europe/Dublin'), + "%a %-d %b %X format 2", + ("%a %-d %b %X format 3", 'Europe/Paris'), + ], + on_leftclick= ["urxvtc"] , # launch urxvtc on left click + on_rightclick= ["scroll_format", 2] , # update format by steps of 2 + log_level=logging.DEBUG, + ) """ def split_callback_and_args(cb):