Kivy – Interactive Applications and Games in Python - Second Edition
eBook - ePub

Kivy – Interactive Applications and Games in Python - Second Edition

Roberto Ulloa

Condividi libro
  1. 206 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Kivy – Interactive Applications and Games in Python - Second Edition

Roberto Ulloa

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

About This Book

  • Utilize the power of Kivy to develop applications that run on all the major platforms
  • Build user interfaces (UI) and control multi-touch events to improve the user experience (UX)
  • A comprehensive tutorial with simplified code and lots of tips and tricks

Who This Book Is For

If you are a Python developer who wants to create exciting and dynamic UI/UX applications that are compatible with multiple platforms, then this is the book for you. No prior experience with Kivy is required, although you should be familiar with Python and have a fair understanding of software engineering concepts such as inheritance, classes, and instances.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Kivy – Interactive Applications and Games in Python - Second Edition è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Kivy – Interactive Applications and Games in Python - Second Edition di Roberto Ulloa in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatique e Programmation en Python. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2015
ISBN
9781785284380
Edizione
2
Argomento
Informatique

Kivy – Interactive Applications and Games in Python Second Edition


Table of Contents

Kivy – Interactive Applications and Games in Python Second Edition
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
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. GUI Basics – Building an Interface
Basic interface – Hello World!
Basic widgets – labels and buttons
Layouts
Embedding layouts
PageLayout – swiping pages
Our project – Comic Creator
Summary
2. Graphics – the Canvas
Understanding the canvas
Drawing basic shapes
Adding images, colors, and backgrounds
Structuring graphic instructions
Rotating, translating, and scaling the coordinate space
Comic Creator: PushMatrix and PopMatrix
Summary
3. Widget Events – Binding Actions
Attributes, ID, and root
Basic widget events – dragging the stickman
Localizing coordinates – adding stickmen
Binding and unbinding events – sizing limbs and heads
Binding events in the Kivy language
Creating your own events – the magical properties
Kivy and its properties
Summary
4. Improving the User Experience
ScreenManager – selecting colors for the figures
Color control on the canvas – coloring figures
StencilView – limiting the drawing space
Scatter – multi-touching to drag, rotate, and scale
Recording gestures – line, circle, and cross
Recognizing gestures – drawing with the finger
Behaviors – enhancing widget's functionality
Style – decorating the interface
Factory – replacing a vertex instruction
Summary
5. Invaders Revenge – an Interactive Multi-touch Game
Invaders Revenge – an animated multi-touch game
Atlas – An efficient management of images
Boom – simple sound effects
Ammo – simple animation
Invader – transitions for animations
Dock – automatic binding in the Kivy language
Fleet – infinite concatenation of animations
Scheduling events with the clock
Shooter – multi-touch control
Invasion – moving the shooter with the keyboard
Combining animations with '+' and '&'
Summary
6. Kivy Player – a TED Video Streamer
Video – play, pause, and stop
AsyncImage – creating a cover for the video
Subtitles – tracking the video progression
Control bar – adding buttons to control the video
Slider – including a progression bar
Animation – hiding a widget
Kivy inspector – debugging interfaces
ActionBar – a responsive bar
LoadDialog – displaying a directory of files
ScrollView – displaying a list of videos
Search – query the TED Developer API
Summary
Index

Kivy – Interactive Applications and Games in Python Second Edition

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: September 2013
Second edition: June 2015
Production reference: 1240615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-692-6
www.packtpub.com

Credits

Author
Roberto Ulloa
Reviewers
Takumi Adachi
Philip Bjorge
Joe Dorocak
Vijay Mahrra
Edward C. Delaporte V
Commissioning Editor
Nadeem N. Bagban
Acquisition Editor
Nikhil Karkal
Content Development Editor
Amey Varangaonkar
Technical Editor
Ankur Ghiye
Copy Editor
Adithi Shetty
Project Coordinator
Suzanne Coutinho
Proofreader
Safis Editing
Indexer
Priya Sane
Graphics
Sheetal Aute
Disha Haria
Jason Monteiro
Production Coordinator
Nitesh Thakur
Cover Work
Nitesh Thakur

About the Author

Roberto Ulloa has a diverse academic record in multiple disciplines within the field of computer science. Currently, he is working with artificial societies as part of his PhD thesis at the University of Western Ontario. He obtained an MSc degree from the University of Costa Rica and taught programming and computer networking there. He has earned a living as a web developer, working with Python/Django and PHP/Wordpress. He collaborates with various researchers while also working on his own projects, including his blog (http://robertour.com). He constantly worries that the Internet has already become aware of itself and that we are not able to communicate with it because of the improbability of it being able to speak any of the 6,000-plus odd human languages that exist on the planet.

Indice dei contenuti