summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wasp/widgets.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wasp/widgets.py b/wasp/widgets.py
index 07bdf0c..8509fbb 100644
--- a/wasp/widgets.py
+++ b/wasp/widgets.py
@@ -221,6 +221,10 @@ class Checkbox():
self._im = (x, y, label)
self.state = False
+ @property
+ def label(self):
+ return self._im[2]
+
def draw(self):
"""Draw the checkbox and label."""
draw = wasp.watch.drawable