售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜