summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2013-02-21 14:58:57 +0100
committerUltrabug <ultrabug@gentoo.org>2013-02-21 14:58:57 +0100
commita5a9a8e2ce2780d2994aa8bd1ab123dfc8bbf129 (patch)
treef92cf97478bfae9f02f658d3b5cc17249880716c
parent22ad82500e6c8ebe727e9ab3bc7a5d3cfb3d4998 (diff)
initial example class
-rw-r--r--examples/empty_class.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/empty_class.py b/examples/empty_class.py
new file mode 100644
index 0000000..67ab5ac
--- /dev/null
+++ b/examples/empty_class.py
@@ -0,0 +1,13 @@
+class Py3status:
+ """
+ Empty and basic py3status class
+ """
+ def empty(self, json):
+ """
+ This method will return an empty text message, so it will NOT be displayed.
+ If you want something displayed you should write something in the 'full_text' key of your response.
+ See the i3bar protocol spec for more information:
+ http://i3wm.org/docs/i3bar-protocol.html
+ """
+ response = {'full_text' : '', 'name' : 'empty'}
+ return (0, response)