From 497d7a120c54400aa81c7e9f9a8a8b7fad7de771 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 10 Sep 2016 22:23:03 +0200 Subject: [PATCH] Add Spacer Button --- tabakrolletjie/widgets.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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): -- 2.34.1