diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2015-03-29 14:43:09 +0200 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2015-03-29 14:43:09 +0200 |
| commit | 4623bfbe4aebca7a8db21d2e266dd1e3dd6a3adc (patch) | |
| tree | 7b62fda58e8aab8dec7df6de9502ab18adc61ecd | |
| parent | 3551bcb7de9b1c2f6bb1120b64185974c5beefad (diff) | |
rename and move the empty_class example module to the doc/ folder
| -rw-r--r-- | doc/example_module.py (renamed from py3status/modules/empty_class.py) | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/py3status/modules/empty_class.py b/doc/example_module.py index 9a58189..7db53fd 100644 --- a/py3status/modules/empty_class.py +++ b/doc/example_module.py @@ -85,11 +85,11 @@ class Py3status: output on the i3bar. Example 'event' json object: - {'y': 13, 'x': 1737, 'button': 1, 'name': 'empty', 'instance': 'first'} + {'y': 13, 'x': 17, 'button': 1, 'name': 'example', 'instance': 'first'} """ pass - def empty(self, i3s_output_list, i3s_config): + def example_method(self, i3s_output_list, i3s_config): """ This method will return an empty text message so it will NOT be displayed on your i3bar. @@ -114,8 +114,9 @@ if __name__ == "__main__": from time import sleep x = Py3status() config = { - 'color_good': '#00FF00', 'color_bad': '#FF0000', + 'color_degraded': '#FFFF00', + 'color_good': '#00FF00' } while True: print(x.empty([], config)) |
