We have covered most of the topics related to event handling in this chapter. You have 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 the Kivy
Widget
and canvas
. Here are the events, methods, properties, and attributes that were covered:
The events:
on_touch_up
,on_touch_move
andon_touch_down
(ofWidget
);on_press
andon_release
(ofButton
) andon_state
(ofToggleButton
)The attributes
x
andy
of aMotionEvent
(touch
);center_x
,center_y
,canvas
,parent
,children
ofWidget
andstate
ofToggleButton
.The following methods of
Widget
:bind
andunbind
to attach events dynamicallycollide_points
,to_parent
,to_local
,to_window
, andto_widget
to work with coordinatesadd_widget
,remove_widget
, andclear_widgets
to dynamically...