Add Spacer Button
authorNeil <neil@dip.sun.ac.za>
Sat, 10 Sep 2016 20:23:03 +0000 (22:23 +0200)
committerNeil <neil@dip.sun.ac.za>
Sat, 10 Sep 2016 20:36:33 +0000 (22:36 +0200)
tabakrolletjie/widgets.py

index 2678e72c46cce18b390686ee079dda184ee1e56b..156cb6cbab8491d8233f289fb2d8401f04128cfa 100644 (file)
@@ -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):