Kivy: Interactive Applications in Python
暫譯: Kivy:Python 互動應用程式
Roberto Ulloa
- 出版商: Packt Publishing
- 出版日期: 2013-09-27
- 售價: $1,660
- 貴賓價: 9.5 折 $1,577
- 語言: 英文
- 頁數: 138
- 裝訂: Paperback
- ISBN: 1783281596
- ISBN-13: 9781783281596
-
相關分類:
Python、程式語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
For Python developers this is the clearest guide to the interactive world of Kivi, ideal for meeting modern expectations of tablets and smartphones. From building a UI to controlling complex multi-touch events, it's all here.
Overview
- Use Kivy to implement apps and games in Python that run on multiple platforms
- Discover how to build a User Interface (UI) through the Kivy Language
- Glue the UI components with the logic of the applications through events and the powerful Kivy properties
- Detect gestures, create animations, and schedule tasks
- Control multi-touch events in order to improve the User Experience (UX)
In Detail
Mobiles and tablets have brought with them a dramatic change in the utility of applications. Compatibility has become essential, and this has increased the kind of interaction that users expect: gestures, multi-touches, animations, and magic pens. Kivy is an open source Python solution that covers these market needs with an easy-to-learn and rapid development approach. Kivy is growing fast and gaining attention as an alternative to the established developing platforms.
Kivy: Interactive Applications in Python quickly introduces you to the Kivy development methodology. You will learn some examples of how to use many of the Kivy components, as well as understand how to integrate and combine them into big projects. This book serves as a reference guide and is organized in such a way that once finished, you will have already completed your first project.
You will start by learning the Kivy Language for building User Interfaces (UI) and vector figures. We then proceed to the uses of Kivy events and properties to glue the UI with the application logic.
You then go on to build an entire User Interface (UI) starting from a hand-made sketch. Furthermore, you will go on to understand how to use the canvas and drawing instructions to create different types of geometrical figures. Finally, you will be introduced to a big set of interactive and smooth features: transformations (scale, rotate, and translate), gestures, animations, scheduling tasks, and multi-touch elements.
Kivy: Interactive Applications in Python expands your knowledge by introducing various components that improve the User Experience (UX). Towards the end of the book, you will be confident to utilize Kivy components and strategies to start any application or game you have in mind.
What you will learn from this book
- Build a User Interface (UI) using the Kivy Language
- Understand and alter the order of execution of the drawing instructions
- Use the powerful Kivy properties to keep the UI always updated with the last user interactions
- Bind and unbind Kivy events to control widgets (UI components), touches, the mouse and keyboard, animations, and clock
- Scale, rotate, and translate widgets
- Control and switch between different screens
- Develop and use your own single gestures
- Create animations and combine them to bring widgets to life
- Add different types of translations to the animations
- Comprehend the main strategies to control the multi-touch events
- Schedule single or repetitive tasks such as animations
Approach
Kivy: Interactive Applications in Python is an easy-to-follow book that will guide you into the world of Kivy.
Who this book is written for
This book is aimed at Python developers who are familiar with Python and have a good understanding of concepts like inheritance, classes, and instances. No previous experience of Kivy is required, though some knowledge of event handling, scheduling, and user interfaces, in general, would boost your learning.
商品描述(中文翻譯)
對於 Python 開發者來說,這是一本最清晰的 Kivy 互動世界指南,適合滿足現代平板電腦和智能手機的期望。從構建用戶界面到控制複雜的多點觸控事件,這裡應有盡有。
**概述**
- 使用 Kivy 在多個平台上實現 Python 應用和遊戲
- 探索如何通過 Kivy 語言構建用戶界面 (UI)
- 通過事件和強大的 Kivy 屬性將 UI 元件與應用邏輯連接起來
- 偵測手勢、創建動畫和排程任務
- 控制多點觸控事件以改善用戶體驗 (UX)
**詳細內容**
移動設備和平板電腦帶來了應用程序效用的劇變。相容性變得至關重要,這增加了用戶期望的互動類型:手勢、多點觸控、動畫和魔術筆。Kivy 是一個開源的 Python 解決方案,滿足這些市場需求,並提供易於學習和快速開發的方法。Kivy 正在快速增長,並作為成熟開發平台的替代方案而受到關注。
《Kivy:Python 中的互動應用程序》迅速向您介紹 Kivy 開發方法論。您將學習如何使用許多 Kivy 元件的示例,並了解如何將它們整合和組合成大型項目。本書作為參考指南,組織得當,讓您在完成後已經完成了您的第一個項目。
您將從學習 Kivy 語言開始,以構建用戶界面 (UI) 和向量圖形。接著,我們將進一步探討 Kivy 事件和屬性的使用,以將 UI 與應用邏輯連接起來。
然後,您將從手繪草圖開始構建整個用戶界面 (UI)。此外,您將了解如何使用畫布和繪圖指令來創建不同類型的幾何圖形。最後,您將接觸到一整套互動和平滑的功能:變換(縮放、旋轉和移動)、手勢、動畫、任務排程和多點觸控元素。
《Kivy:Python 中的互動應用程序》通過介紹各種元件來擴展您的知識,這些元件改善了用戶體驗 (UX)。在書的結尾,您將能夠自信地利用 Kivy 元件和策略來啟動您心中任何的應用或遊戲。
**您將從本書中學到什麼**
- 使用 Kivy 語言構建用戶界面 (UI)
- 理解並改變繪圖指令的執行順序
- 使用強大的 Kivy 屬性保持 UI 始終更新以反映最新的用戶互動
- 綁定和解除綁定 Kivy 事件以控制小部件 (UI 元件)、觸控、鼠標和鍵盤、動畫以及時鐘
- 縮放、旋轉和移動小部件
- 控制和切換不同的螢幕
- 開發和使用您自己的單一手勢
- 創建動畫並將它們結合起來使小部件生動起來
- 為動畫添加不同類型的轉換
- 理解控制多點觸控事件的主要策略
- 排程單一或重複的任務,例如動畫
**方法**
《Kivy:Python 中的互動應用程序》是一本易於跟隨的書籍,將引導您進入 Kivy 的世界。
**本書的讀者對象**
本書針對熟悉 Python 的 Python 開發者,並對繼承、類別和實例等概念有良好的理解。不需要有 Kivy 的先前經驗,但對事件處理、排程和用戶界面的一般知識將有助於您的學習。