Summary
We covered most of the topics related to event handling in this chapter. You learned how to override different kind of events, dynamic binding and unbinding, assigning events in the Kivy language, and creating our own. You also learned about Kivy properties, how to manage the localization of coordinates to different widgets, and many methods related to adding, removing, and updating objects of Kivy
Widget
and canvas
. Here are the events, methods, properties, and attributes that were covered:
- The events we covered are
on_touch_up
,on_touch_move
andon_touch_down
(ofWidget
);on_press
andon_release
(ofButton
); andon_state
(ofToggleButton
) - The attributes we covered are x and y of
MotionEvent
(touch
);center_x
,center_y
,canvas
,parent
Get Kivy – Interactive Applications and Games in Python - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.