|
@@ -208,12 +208,7 @@ class Widget(Positionable, Logger):
|
|
|
def handle_gesture(self, gesture):
|
|
def handle_gesture(self, gesture):
|
|
|
"""
|
|
"""
|
|
|
Handle a gesture that is triggered by a gesture tracker. First, all
|
|
Handle a gesture that is triggered by a gesture tracker. First, all
|
|
|
- handlers bound to the gesture type are called. Second, if the gesture's
|
|
|
|
|
- propagation has not been stopped by a handler, the gesture is
|
|
|
|
|
- propagated to the parent widget.
|
|
|
|
|
|
|
+ handlers bound to the gesture type are called.
|
|
|
"""
|
|
"""
|
|
|
for handler in self.handlers.get(gesture.get_type(), ()):
|
|
for handler in self.handlers.get(gesture.get_type(), ()):
|
|
|
handler(gesture)
|
|
handler(gesture)
|
|
|
-
|
|
|
|
|
- #if self.parent and not gesture.is_propagation_stopped():
|
|
|
|
|
- # self.parent.handle_gesture(gesture)
|
|
|