From: Neil Date: Sat, 10 Sep 2016 20:23:03 +0000 (+0200) Subject: Add Spacer Button X-Git-Tag: tabakrolletjie-v1.0.0~41^2~5 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=497d7a120c54400aa81c7e9f9a8a8b7fad7de771;p=tabakrolletjie.git Add Spacer Button --- diff --git a/tabakrolletjie/widgets.py b/tabakrolletjie/widgets.py index 2678e72..156cb6c 100644 --- a/tabakrolletjie/widgets.py +++ b/tabakrolletjie/widgets.py @@ -50,6 +50,14 @@ class Button(object): return False +class SpacerButton(Button): + """ Add a nothing object which can be used to space other things, + but is never pressed """ + + def pressed(self, ev): + return False + + class TextButton(Button): def __init__(self, text, colour, name=None, pos=None, padding=10):