Build mobile apps efficiently with Kivy, the Python-powered graphical toolkit for creating natural user interfaces with elegant multitouch support. With this hands-on guide, you'll learn step-by-step how to build and deploy a complete Kivy app for iOS and Android devices. If you're just beginning to work with Python, but are reasonably familiar with its syntax, you're ready to go. Each chapter includes exercises, using examples that run on Python 3 and Python 2.7. Learn how Kivy simplifies mobile development with its cross-platform API and domain-specific Kv language, and why this free and open source toolkit is ideal for commercial products. Design custom widgets with the Kv language Delve into Kivy events, event handlers, and properties Dynamically change which Kivy widgets are displayed Understand and apply iterative development principles Create basic animations, using Canvas and graphics primitives Store local data with Kivy's powerful key value store Add basic gestures to switch between app views Improve your app's usability with Kivy's built-in widgets Deploy the app to your Android or iOS device, using Buildozer
Author(s): Dusty Phillips
Publisher: Oreilly & Associates Incorporated
Year: 2014
Language: English
Pages: 124
Copyright
Table of Contents
Preface
Who Should Read This Book
Technology Used in This Book
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
Chapter 1. Introducing Kivy
Dependencies: The Hard Part
Installing on Mac OS
Installing on Windows
Writing Code: The Easy Part
Introducing the KV Language
User Interface Design
Widgets
The KV Language Root Widget
Creating a Custom Widget
Adjusting Widget Size
File It All Away
Chapter 2. Events and Properties
What Is an Event?
Adding Logic to a Custom Widget
Responding to Events
Accessing Properties of KV Language Widgets
Populating the Search Result List
File It All Away
Chapter 3. Manipulating Widgets
A More Extensible Root Widget
ListView Adapters
Responding to ListView Item Events
Swappable Widgets
Switching Forms
File It All Away
Chapter 4. Iterative Development
Improving the Add Location Form
Caching Widgets
Storing Actual Locations and Converting Arguments
Retrieving Weather Data
File It All Away
Chapter 5. Kivy Graphics
A Conditions Widget
Dynamic Conditions
Abstracting Common Widgets
Basic Animation
Using Icons Instead
File It All Away
Chapter 6. Kivy Storage
Maintaining a List of Locations
Storing the Location List
The User Settings Dialog
File It All Away
Chapter 7. Gestures
The Forecast Tab
Recording Gestures
Touch Events
Recognizing Gestures
Firing Events
File It All Away
Chapter 8. Advanced Widgets
Carousel
The ModalView Widget
Completing the Refactor
Adding an Action Bar
File It All Away
Chapter 9. Releasing to Android and iOS
Getting Buildozer
Deploying Your Application
Deploying to iOS
Android Bonus: Accessing the GPS
Keeping It Running
File It All Away
Index
About the Author