Kivy Cookbook
eBook - ePub

Kivy Cookbook

Hugo Solis

Compartir libro
  1. 246 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Kivy Cookbook

Hugo Solis

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Kivy Cookbook un PDF/ePUB en línea?
Sí, puedes acceder a Kivy Cookbook de Hugo Solis en formato PDF o ePUB, así como a otros libros populares de Informatique y Développement d'applications. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781783987382
Edición
1
Categoría
Informatique

Kivy Cookbook


Table of Contents

Kivy Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Kivy and the Kv Language
Introduction
Installing Kivy
Getting ready
How to do it…
How it works…
There's more…
Mac OS X
Microsoft Windows
See also
Building your interfaces
Getting ready
How to do it…
How it works…
There's more…
See also
Declaring properties within a class
Getting ready
How to do it…
How it works…
There's more…
See also
Relating Python code and the Kv language
Getting ready
How to do it…
How it works…
There's more…
See also
Referencing widgets
Getting ready
How to do it…
How it works…
There's more…
See also
Accessing widgets defined inside the Kv language in your Python code
Getting ready
How to do it…
How it works…
See also
Reusing styles in multiple widgets
Getting ready
How to do it…
How it works…
There's more…
See also
Designing with the Kv language
Getting ready
How to do it…
How it works…
There's more…
See also
Running your code
Getting ready
How to do it…
How it works…
There's more…
Mac OS X
Microsoft Windows
See also
Using Kivy garden
Getting ready
How to do it…
There's more…
Packing
2. Input, Motion, and Touch
Introduction
Using the mouse
Getting ready
How to do it…
How it works…
There's more…
See also
Evolving to the touchscreen
Getting ready
How to do it…
How it works…
There's more…
See also
Working with the accelerometer
Getting ready
How to do it…
How it works…
There's more…
See also
Using the gyroscope
Getting ready
How to do it…
How it works…
See also
The differences between the touch and motion events
Getting ready
How to do it…
How it works…
There's more…
See also
Recognizing touch shapes
Getting ready
How to do it…
How it works…
See also
Detecting multitapping
Getting ready
How to do it…
How it works…
Grabbing touch events
Getting ready
How to do it…
How it works…
Recording gestures
Getting ready
How to do it…
How it works…
There's more…
See also
3. Events
Introduction
Scheduling a one-time event
Getting ready
How to do it…
How it works…
There's more…
See also
Scheduling a repetitive event
Getting ready
How to do it…
How it works…
There's more…
See also
Triggering events
Getting ready
How to do it…
How it works…
There's more…
See also
Defining widget events
Getting ready
How to do it…
How it works…
There's more…
See also
Creating custom events
Getting ready
How to do it…
How it works…
There's more…
See also
Attaching callbacks
Getting ready
How to do it…
How it works…
See also
Declaring a property
Getting ready
How to do it…
How it works…
There's more…
See also
Compounding properties
Getting ready
How to do it…
How it works…
There's more…
See also
4. Widgets
Introduction
Using the basics: buttons, labels, and text inputs
Getting ready
How to do it…
How it works…
There's more…
See also
Manipulating the widget tree
Getting ready
How to do it…
How it works…
There's more…
See also
Traversing the tree
Getting ready
How to do it…
How it works…
Using swappable widgets
Getting ready
How to do it…
How it works…
See also
Organizing with layouts
Getting ready
How to do it…
How it works…
There's more…
Using FloatLayout
Getting ready
How to do it…
How it works…
There's more…
See also
Using BoxLayout
Getting ready
How to do it…
How it works…
There's more…
Using GridLayout
How to do it…
How it works…
There's more…
Using StackLayout
Getting ready
How to do it…
How it works…
There's more…
Using RelativeLayout
Getting ready
How to do it…
How it works…
Using AnchorLayout
How to do it…
How it works…
Working with ActionBar
Getting ready
How to do it…
How it works…
See also
5. Graphics – Canvas and Instructions
Introduction
Separating with the screen manager
Getting ready
How to do it…
How it works…
There's more…
Using drawing instructions
Getting ready
How to do it…
How it works…
There's more…
Using context instructions
Getting ready
How to do it…...

Índice