Kivy Cookbook
Book information
Description
Packt Publishing, 2015. — 246 p. — ISBN - 978-1-78398-739-9; ISBN 10 - 1-78398-739-1.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.Kivy and the Kv Language Installing Kivy Building your interfaces Declaring properties within a class Relating Python code and the Kv language Referencing widgets Accessing widgets defined inside the Kv language in your Python code Reusing styles in multiple widgets Designing with the Kv language Running your code Using Kivy gardenInput, Motion, and Touch Using the mouse Evolving to the touchscreen Working with the accelerometer Using the gyroscope The differences between the touch and motion events Recognizing touch shapes Detecting multitapping Grabbing touch events Recording gestures Events Scheduling a one-time event Scheduling a repetitive event Triggering events Defining widget events Creating custom events Attaching callbacks Declaring a property Compounding propertiesWidgets Using the basics: buttons, labels, and text inputs Manipulating the widget tree Traversing the tree Using swappable widgets Organizing with layouts Using FloatLayout Using BoxLayout Using GridLayout Using StackLayout Using RelativeLayout Using AnchorLayout Working with ActionBarGraphics – Canvas and Instructions Separating with the screen manager Using drawing instructions Using context instructions Working with manipulating instructions Rotating, translating, and scaling the canvas Modifying with multitouching Storing and retrieving the coordinate space context Introducing animationsAdvanced Graphics – Shaders and Rendering Using Carousel Creating and using Atlas Creating layouts Editing shaders Creating widgets Creating your own shader Rendering in a Framebuffer Optimizing graphicsThe API in Detail Getting to know the API Using the asynchronous data loader Logging objects Parsing Applying utils Leveraging the factory object Working with audio Working with video Working with a camera Using spelling Adding effects Advanced text manipulation 8. Packaging our Apps for PC Packaging for Windows Including multimedia for Windows Running apps in Windows Packaging for Mac OS Including multimedia for Mac OS Running apps in Mac OS Packaging for Linux Including multimedia for Linux Running apps in Linux 9. Kivy for Mobile Devices Packaging for iOS Resizing the screen into iOS Leveraging mobile features in iOS Preparing for the App Store Packaging for Android Resizing the screen into Android Leveraging mobile features in Android
Similar books
Problem Solving with Algorithms and Data Structures Using Python. Release 3.0
Functional Programming in Python
EPUB
Functional Programming in Python
MOBI
Mastering Python for Data Science
Написание скриптов для Blender 2.49
Learning Data Mining with Python: Harness the power of Python to analyze data and create insightful predictive models
Python и анализ данных (+ исходные коды и дополнительные материалы с сайта поддержки)
RAR