X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=blobdiff_plain;f=tabakrolletjie%2Fwidgets.py;h=156cb6cbab8491d8233f289fb2d8401f04128cfa;hp=2678e72c46cce18b390686ee079dda184ee1e56b;hb=497d7a120c54400aa81c7e9f9a8a8b7fad7de771;hpb=8e9a71bfebc4d88fd1c2fd7250238bc34dcac55e 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):