For Python developers this is the clearest guide to the interactive world of Kivi, ideal for meeting modern expectations of tablets and smartphones. From building a UI to controlling complex multi-touch events, it's all here.
- Use Kivy to implement apps and games in Python that run on multiple platforms
- Discover how to build a User Interface (UI) through the Kivy Language
- Glue the UI components with the logic of the applications through events and the powerful Kivy properties
- Detect gestures, create animations, and schedule tasks
- Control multi-touch events in order to improve the User Experience (UX)
Mobiles and tablets have brought with them a dramatic change in the utility of applications. Compatibility has become essential, and this has increased the kind of interaction that users expect: gestures, multi-touches, animations, and magic pens. Kivy is an open source Python solution that covers these market needs with an easy-to-learn and rapid development approach. Kivy is growing fast and gaining attention as an alternative to the established developing platforms.
Kivy: Interactive Applications in Python quickly introduces you to the Kivy development methodology. You will learn some examples of how to use many of the Kivy components, as well as understand how to integrate and combine them into big projects. This book serves as a reference guide and is organized in such a way that once finished, you will have already completed your first project.
You will start by learning the Kivy Language for building User Interfaces (UI) and vector figures. We then proceed to the uses of Kivy events and properties to glue the UI with the application logic.
You then go on to build an entire User Interface (UI) starting from a hand-made sketch. Furthermore, you will go on to understand how to use the canvas and drawing instructions to create different types of geometrical figures. Finally, you will be introduced to a big set of interactive and smooth features: transformations (scale, rotate, and translate), gestures, animations, scheduling tasks, and multi-touch elements.
Kivy: Interactive Applications in Python expands your knowledge by introducing various components that improve the User Experience (UX). Towards the end of the book, you will be confident to utilize Kivy components and strategies to start any application or game you have in mind.
What you will learn from this book
- Build a User Interface (UI) using the Kivy Language
- Understand and alter the order of execution of the drawing instructions
- Use the powerful Kivy properties to keep the UI always updated with the last user interactions
- Bind and unbind Kivy events to control widgets (UI components), touches, the mouse and keyboard, animations, and clock
- Scale, rotate, and translate widgets
- Control and switch between different screens
- Develop and use your own single gestures
- Create animations and combine them to bring widgets to life
- Add different types of translations to the animations
- Comprehend the main strategies to control the multi-touch events
- Schedule single or repetitive tasks such as animations
Kivy: Interactive Applications in Python is an easy-to-follow book that will guide you into the world of Kivy.
Who this book is written for
This book is aimed at Python developers who are familiar with Python and have a good understanding of concepts like inheritance, classes, and instances. No previous experience of Kivy is required, though some knowledge of event handling, scheduling, and user interfaces, in general, would boost your learning.