Kivy Cookbook
图书信息
| 作者 | Hugo Solis |
| 出版社 | Packt Publishing |
| ISBN | 9781783987399 |
| 出版时间 | 2015-08-21 |
| 字数 | 121.4万 |
| 分类 | 进口书,外文原版书,电脑,网络 |
读书简介
This book is intended for developers who want to use features of the Kivy framework and develop multitouch applications. Prior experience with Kivy is not required although familiarity with Python is expected.
目录
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…
How it works…
There's more…
Working with manipulating instructions
Getting ready
How to do it…
How it works…
There's more…
Rotating, translating, and scaling the canvas
Getting ready
How to do it…
How it works…
There's more…
Modifying with multitouching
Getting ready
How to do it…
How it works…
There's more…
Storing and retrieving the coordinate space context
Getting ready
How to do it…
Introducing animations
Getting ready
How to do it…
How it works…
There's more…
See also
6. Advanced Graphics – Shaders and Rendering
Introduction
Using Carousel
Getting ready
How to do it…
How it works…
There's more…
Creating and using Atlas
Getting ready
How to do it…
How it works…
Creating layouts
Getting ready
How to do it…
How it works…
Editing shaders
Getting ready
How to do it…
How it works…
There's more…
Creating widgets
Getting ready
How to do it…
How it works…
See also
Creating your own shader
Getting ready
How to do it…
How it works…
There's more…
See also
Rendering in a Framebuffer
Getting ready
How to do it…
How it works…
Optimizing graphics
Getting ready
How to do it…
There's more…
See also
7. The API in Detail
Introduction
Getting to know the API
Getting ready
How to do it…
How it works…
There's more…
See also
Using the asynchronous data loader
Getting ready
How to do it…
How it works…
There's more…
Logging objects
How to do it…
How it works…
There's more…
See also
Parsing
How to do it…
How it works…
See also
Applying utils
How to do it…
How it works…
See also
Leveraging the factory object
Getting ready
How to do it…
How it works…
There's more…
See also
Working with audio
Getting ready
How to do it…
How it works…
There's more…
See also
Working with video
Getting ready
How to do it…
How it works…
There's more…
See also
Working with a camera
Getting ready
How to do it…
There's more…
Using spelling
Getting ready
How to do it…
How it works…
Adding effects
Getting ready
How to do it…
How it works…
There's more…
See also
Advanced text manipulation
How to do it…
How it works…
There's more…
See also
8. Packaging our Apps for PC
Introduction
Packaging for Windows
Getting ready
How to do it…
How it works…
There's more…
See also
Including multimedia for Windows
Getting ready
How to do it…
How it works…
There's more…
See also
Running apps in Windows
Getting ready
How to do it…
How it works…
See also
Packaging for Mac OS
Getting ready
How to do it…
How it works…
There's more…
See also
Including multimedia for Mac OS
Getting ready
How to do it…
How it works…
There's more…
Running apps in Mac OS
Getting ready
How to do it…
How it works…
See also
Packaging for Linux
Getting ready
How to do it…
Including multimedia for Linux
Getting ready
How to do it…
Running apps in Linux
Getting ready
How to do it…
How it works…
9. Kivy for Mobile Devices
Introduction
Packaging for iOS
Getting ready
How to do it…
How it works…
There's more…
See also
Resizing the screen into iOS
Getting ready
How to do it…
How it works…
There's more…
See also
Leveraging mobile features in iOS
Getting ready
How to do it…
How it works…
There's more…
See also
Preparing for the App Store
Getting ready
How to do it…
How it works…
See also
Packaging for Android
Getting ready
How to do it…
How it works…
See also
Resizing the screen into Android
Getting ready
How to do it…
How it works…
There's more…
See also
Leveraging mobile features in Android
Getting ready
How to do it…
How it works…
There's more…
See also
Index
- 世界500强企业精细化管理工具系列--物业管理实用流程·制度·表格·文本(邵小云)
- SEO深度解析:全面挖掘搜索引擎优化的核心秘密(痞子瑞)
- 数字时代的营销战略(曹虎等)
- 粗糙且含糊不清的怪盗预告信:警察厅特案专职搜查课事件簿([日] 仓知淳)
- 为爱赴死因爱而生(读书堂)
- 物联网与智慧城市(邵泽华)
- 简单易学的基金投资(杨天南,孙振曦,贾泽亮 等)
- 做事先做人(李元秀 主编)
