Creating Apps in Kivy

Book description

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.

Table of contents

  1. Preface
    1. Who Should Read This Book
    2. Technology Used in This Book
    3. Conventions Used in This Book
    4. Using Code Examples
    5. Safari® Books Online
    6. How to Contact Us
    7. Content Updates
      1. August 2014
    8. Acknowledgments
  2. 1. Introducing Kivy
    1. Dependencies: The Hard Part
      1. Installing on Mac OS
      2. Installing on Windows
    2. Writing Code: The Easy Part
    3. Introducing the KV Language
      1. User Interface Design
      2. Widgets
      3. The KV Language Root Widget
      4. Creating a Custom Widget
      5. Adjusting Widget Size
        1. Size hint advice
        2. Size advice
        3. See it in action
    4. File It All Away
  3. 2. Events and Properties
    1. What Is an Event?
    2. Adding Logic to a Custom Widget
    3. Responding to Events
    4. Accessing Properties of KV Language Widgets
    5. Populating the Search Result List
    6. File It All Away
  4. 3. Manipulating Widgets
    1. A More Extensible Root Widget
    2. ListView Adapters
    3. Responding to ListView Item Events
    4. Swappable Widgets
    5. Switching Forms
    6. File It All Away
  5. 4. Iterative Development
    1. Improving the Add Location Form
    2. Caching Widgets
    3. Storing Actual Locations and Converting Arguments
    4. Retrieving Weather Data
    5. File It All Away
  6. 5. Kivy Graphics
    1. A Conditions Widget
    2. Dynamic Conditions
    3. Abstracting Common Widgets
    4. Basic Animation
    5. Using Icons Instead
    6. File It All Away
  7. 6. Kivy Storage
    1. Maintaining a List of Locations
    2. Storing the Location List
    3. The User Settings Dialog
    4. File It All Away
  8. 7. Gestures
    1. The Forecast Tab
    2. Recording Gestures
    3. Touch Events
    4. Recognizing Gestures
    5. Firing Events
    6. File It All Away
  9. 8. Advanced Widgets
    1. Carousel
    2. The ModalView Widget
    3. Completing the Refactor
    4. Adding an Action Bar
    5. File It All Away
  10. 9. Releasing to Android and iOS
    1. Getting Buildozer
    2. Deploying Your Application
    3. Deploying to iOS
    4. Android Bonus: Accessing the GPS
    5. Keeping It Running
    6. File It All Away
  11. 10. Writing a Simple Mobile Game
    1. Designing a Game
    2. Float Layouts
    3. The Ship Widget
      1. Make a Dot
      2. Make the Dot Grow
    4. Adding Energy
      1. Recording Energy
      2. Displaying Energy
    5. File It All Away
  12. 11. Modeling Enemies
    1. Periodic Random Enemies
    2. Styling an Enemy
    3. Positioning Enemies Outside the Screen
    4. Updating Enemy Position and Managing Their Score
    5. Updating the Score
    6. Reporting the Score
    7. File It All Away
  13. 12. Advanced Graphics
    1. A Starfield Background
    2. Scrolling the Background
    3. More Animations
      1. Why 12 Graphics Instead of One Rotating Graphic?
    4. Kivy Atlas
      1. Using an Atlas
    5. Animating Properties
    6. File It All Away
  14. Index
  15. Colophon
  16. Copyright

Product information

  • Title: Creating Apps in Kivy
  • Author(s):
  • Release date: April 2014
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781491946671