diff options
| author | Ultrabug <ultrabug@ultrabug.net> | 2015-03-26 14:13:47 +0100 |
|---|---|---|
| committer | Ultrabug <ultrabug@ultrabug.net> | 2015-03-26 14:13:47 +0100 |
| commit | 9fb352098f75cac0409daed7369d8c34cb033fd2 (patch) | |
| tree | 60f88da1ad669f2bafa66063ff517c333faf994f /py3status/modules | |
| parent | 694730d8e0da956d19123e133866b9e4b561abcb (diff) | |
| parent | 058988adeeab4f1b3e93e16b80948bffe30b94bc (diff) | |
Merge pull request #83 from FedericoCeratto/patch-1
Improve documentation in the example module by @FedericoCeratto
Diffstat (limited to 'py3status/modules')
| -rw-r--r-- | py3status/modules/empty_class.py | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/py3status/modules/empty_class.py b/py3status/modules/empty_class.py index 6a7f974..1dedbc8 100644 --- a/py3status/modules/empty_class.py +++ b/py3status/modules/empty_class.py @@ -1,15 +1,35 @@ # -*- coding: utf-8 -*- + +# This is an example module to be used as a template. +# See https://github.com/ultrabug/py3status/wiki/Write-your-own-modules +# for more details. +# +# 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: """ -Empty and basic py3status class. +One-line summary followed by an empty line. -NOTE: py3status will NOT execute: - - methods starting with '_' - - methods decorated by @property and @staticmethod +Multi-line description followed by an empty line. -NOTE: reserved method names: - - 'kill' method for py3status exit notification - - 'on_click' method for click events from i3bar (read below please) +@author <your full name> <your email address> +@license <ancronym> (please favor BSD or GPLv3) """ +# 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 |
