projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draw tile backgrounds
[naja.git]
/
naja
/
widgets
/
base.py
diff --git
a/naja/widgets/base.py
b/naja/widgets/base.py
index c82026179c9856b4812f6937d433881a8321fddc..ee6190b91939bdd35176e11257fc570ac2a78adf 100644
(file)
--- a/
naja/widgets/base.py
+++ b/
naja/widgets/base.py
@@
-39,7
+39,7
@@
class Widget(object):
self._prepared = False
return False
if SelectEvent.matches(ev) or ev.type == pgl.MOUSEBUTTONDOWN:
self._prepared = False
return False
if SelectEvent.matches(ev) or ev.type == pgl.MOUSEBUTTONDOWN:
- self.callback('click')
+
return
self.callback('click')
return False
def add_callback(self, event, callback):
return False
def add_callback(self, event, callback):
@@
-48,6
+48,7
@@
class Widget(object):
def callback(self, event):
for callback in self.callbacks[event]:
callback(event)
def callback(self, event):
for callback in self.callbacks[event]:
callback(event)
+ return bool(self.callbacks[event])
class Container(object):
class Container(object):