Ebook Kivy Interactive Applications in Python

Kivy Interactive Applications in Python
Kivy Interactive Applications in Python

Download

THÔNG TIN TÀI LIỆU

Nhà xuất bản Packt Publishing
Tác giả Roberto Ulloa
Số trang 138
Ngày xuất bản 2013
File PDF

NỘI DUNG TÀI LIỆU
Chapter 1: GUI Basics – Building an Interface 7
Hello World! 8
Basic widgets – labels and buttons 11
Layouts 14
Embedding layouts 18
Our Project – comic creator 22
Summary 28

Chapter 2: Graphics – The Canvas 31
Basic shapes 32
Images, colors, and backgrounds 38
Rotating, translating, and scaling 41
Comic creator – PushMatrix and PopMatrix 44
Summary 48

Chapter 3: Widget Events – Binding Actions 51
Attributes, id and root 52
Basic widget events – dragging the stickman 54
Localizing coordinates – adding stickmen 59
Binding and unbinding events – sizing limbs and heads 62
Binding events in the Kivy language 67
Creating your own events – the magical properties 69
Kivy and properties 72
Summary 75

Chapter 4: Improving the User Experience 77
Screen manager – selecting colors for the fgures 78
Color Control on the canvas – coloring fgures 81
StencilView – limiting the drawing space 84
Scatter – multitouching to drag, rotate, and scale 85
Recording gestures – line, circles, and cross 89
Simple gestures – drawing with the fnger 91
Summary 95

Chapter 5: Invaders Revenge – An Interactive Multitouch Game 97
Invaders Revenge – an animated multitouch game 98
Atlas – effcient management of images 99
Boom – simple sound effects 101
Ammo – simple animation 102
Invader – transitions for animations 103
Dock – automatic binding in the Kivy language 105
Fleet – infnite concatenation of animations 107
Scheduling events with the Clock 108
Shooter – multitouch control 110
Invasion – moving the shooter with the keyboard 113
Combining animations with ‘+’ and ‘&’ 115
Summary 117
Index 119

Be the first to comment

Leave a Reply

Your email address will not be published.

*