Book description
Enhance your skills in developing multi-touch applications with Kivy
About This Book
- Create most diverse apps and learn how to distribute them with the help of the Kivy framework
- Explore Kivy API to develop user interfaces and control multi-touch events
- Step-by-step recipes that provide deeper understanding of the Kivy 1.9.0 framework
- Build and use your own events, widgets and gestures using features and tools in Kivy
Who This Book Is For
This book is intended for developers who want to use features of the Kivy framework and develop multi-touch applications. Prior experience with Kivy is not required, although familiarity with Python is expected.
What You Will Learn
- Access widgets defined inside Kv language in your Python code
- Handle Kivy events to control widgets, touches, the mouse, the keyboard, and animations
- Recognize touch shapes and detecting multi-tapping
- Create custom events and declare properties
- Organizing your layouts while working with the ActionBar
- Store and retrieve the coordinate space context
- Create your own shader and render in a framebuffer
- Leverage Factory objects, multi-touch in iOS and multi-touch in Android
In Detail
Kivy is an open-source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. It is a promising Python framework to develop UI and UX apps in a cross-platform environment, under the Python philosophy.
Kivy Cookbook is a practical book that will guide you through the Kivy framework to develop apps and get your apps ready for distribution in App Store and Android devices.
You will start off with installing Kivy and building your interfaces. You will learn how to work the accelerometer and create custom events. Then, you will understand how to use the basics, buttons, labels and text inputs and manipulate the widget tree. Next, you will be able to work with manipulating instructions, create an atlas and layouts. Moving on, you will learn packing for Windows and packing for iOS, and use TestDrive.
By the end of the book, you will have learnt in detail the relevant features and tools in Kivy and how to create portable packages to distribute your apps in the most used platforms.
Style and approach
This is an easy-to-follow practical guide packed with graspable recipes that cover important tasks to be performed while developing multi-touch applications with Kivy. All the code used in each recipe is explained in detail.
Table of contents
-
Kivy Cookbook
- Table of Contents
- Kivy Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Kivy and the Kv Language
- Introduction
- Installing Kivy
- Building your interfaces
- Declaring properties within a class
- Relating Python code and the Kv language
- Referencing widgets
- Accessing widgets defined inside the Kv language in your Python code
- Reusing styles in multiple widgets
- Designing with the Kv language
- Running your code
- Using Kivy garden
- 2. Input, Motion, and Touch
- 3. Events
- 4. Widgets
- 5. Graphics – Canvas and Instructions
- 6. Advanced Graphics – Shaders and Rendering
- 7. The API in Detail
- 8. Packaging our Apps for PC
- 9. Kivy for Mobile Devices
- Index
Product information
- Title: Kivy Cookbook
- Author(s):
- Release date: August 2015
- Publisher(s): Packt Publishing
- ISBN: 9781783987382
You might also like
book
Matplotlib 3.0 Cookbook
Build attractive, insightful, and powerful visualizations to gain quality insights from your data Key Features Master …
book
Creating Apps in Kivy
Build mobile apps efficiently with Kivy, the Python-powered graphical toolkit for creating natural user interfaces with …
book
Tkinter GUI Application Development Blueprints - Second Edition
Geometry Management, Event Handling, and more About This Book A Practical, guide to learn the application …
book
Qt5 Python GUI Programming Cookbook
Over 60 recipes to help you design interactive, smart, and cross-platform GUI applications Key Features Get …