projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9a71b
)
Add Spacer Button
author
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 20:23:03 +0000
(22:23 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 20:36:33 +0000
(22:36 +0200)
tabakrolletjie/widgets.py
patch
|
blob
|
history
diff --git
a/tabakrolletjie/widgets.py
b/tabakrolletjie/widgets.py
index 2678e72c46cce18b390686ee079dda184ee1e56b..156cb6cbab8491d8233f289fb2d8401f04128cfa 100644
(file)
--- 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):