Book Image

Kivy - Interactive Applications and Games in Python

By : Roberto Ulloa
Book Image

Kivy - Interactive Applications and Games in Python

By: Roberto Ulloa

Overview of this book

Table of Contents (13 chapters)
Kivy – Interactive Applications and Games in Python Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 and on_touch_down (of Widget); on_press and on_release (of Button); and on_state (of ToggleButton)

  • The attributes we covered are x and y of MotionEvent (touch); center_x, center_y, canvas, parent, and children of Widget, and state of ToggleButton.

  • The following methods of Widget:

    • bind and unbind to attach events dynamically

    • collide_points, to_parent, to_local, to_window, and to_widget to work with coordinates

    • add_widget, remove_widget, and clear_widgets...