eBook - ePub
Kivy â Interactive Applications and Games in Python - Second Edition
Roberto Ulloa
This is a test
Partager le livre
- 206 pages
- English
- ePUB (adapté aux mobiles)
- Disponible sur iOS et Android
eBook - ePub
Kivy â Interactive Applications and Games in Python - Second Edition
Roberto Ulloa
DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations
Ă propos de ce livre
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.
Foire aux questions
Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier lâabonnement ». Câest aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via lâapplication. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă la bibliothĂšque et Ă toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode dâabonnement : avec lâabonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă 12 mois dâabonnement mensuel.
Quâest-ce que Perlego ?
Nous sommes un service dâabonnement Ă des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă toute une bibliothĂšque pour un prix infĂ©rieur Ă celui dâun seul livre par mois. Avec plus dâun million de livres sur plus de 1 000 sujets, nous avons ce quâil vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Ăcouter sur votre prochain livre pour voir si vous pouvez lâĂ©couter. Lâoutil Ăcouter lit le texte Ă haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, lâaccĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Kivy â Interactive Applications and Games in Python - Second Edition est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă Kivy â Interactive Applications and Games in Python - Second Edition par Roberto Ulloa en format PDF et/ou ePUB ainsi quâĂ dâautres livres populaires dans Informatique et Programmation en Python. Nous disposons de plus dâun million dâouvrages Ă dĂ©couvrir dans notre catalogue.
Informations
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.