Book Image

Kivy Cookbook

By : Hugo Solis
Book Image

Kivy Cookbook

By: Hugo Solis

Overview of this book

Table of Contents (16 chapters)
Kivy Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


In this chapter, we will be reviewing events. Normally, someone experienced in programming languages understands the concept behind the behavior of an event. The most common definition of an event is something that happens, and usually GUI frameworks provide a way to handle things that happen. Kivy is not the exception, even thought Kivy does it in an easier way than the others.

The following recipes will cover three types of events: clock-related, widget-defined, and property events. Clock-related events are events where time plays a relevant role. The widget-defined events are those that are related to the widget's functionality. For example, in the case of a button, when it is pressed, an event is fired. A property event is fired when a property of the widget is changed, such as size or position.