From 597038bb67c6df0c4f0fbeba69c1f0ad6e9f3c15 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Thu, 26 Mar 2015 14:20:41 +0100 Subject: update the comments on the example module --- py3status/modules/empty_class.py | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/py3status/modules/empty_class.py b/py3status/modules/empty_class.py index 1dedbc8..9a58189 100644 --- a/py3status/modules/empty_class.py +++ b/py3status/modules/empty_class.py @@ -7,29 +7,40 @@ # NOTE: py3status will NOT execute: # - methods starting with '_' # - methods decorated by @property and @staticmethod -# +# # NOTE: reserved method names: # - 'kill' method for py3status exit notification # - 'on_click' method for click events from i3bar (read below please) # -# Do NOT use print on your modules: py3status will catch any output and discard -# it silently because this would break your i3bar (see issue #20 for details). -# Make sure you catch any output from any external program you may call -# from your module. Any output from an external program cannot be caught and -# silenced by py3status and will break your i3bar so please, redirect any -# stdout/stderr to /dev/null for example (see issue #20 for details). -# -# Fill in the following docstring: it will beparsed py3status to document -# your module: +# WARNING: +# +# Do NOT use print on your modules: py3status will catch any output and discard +# it silently because this would break your i3bar (see issue #20 for details). +# Make sure you catch any output from any external program you may call +# from your module. Any output from an external program cannot be caught and +# silenced by py3status and will break your i3bar so please, redirect any +# stdout/stderr to /dev/null for example (see issue #20 for details). +# +# CONTRIBUTORS: +# +# Contributors are kindly requested to agree to contribute their code under +# the BSD license to match py3status' one. +# +# Any contributor to this module should add his/her name to the @author +# line, comma separated. +# +# DOCSTRING: +# +# Fill in the following docstring: it will be parsed by py3status to document +# your module from the CLI. """ One-line summary followed by an empty line. Multi-line description followed by an empty line. @author -@license (please favor BSD or GPLv3) +@license BSD """ -# Any contributor to this module should add his/her name to the @author line, comma separated # import your useful libs here from time import time @@ -98,6 +109,7 @@ class Py3status: if __name__ == "__main__": """ Test this module by calling it directly. + This SHOULD work before contributing your module please. """ from time import sleep x = Py3status() -- cgit v1.3