Kivy Cookbook
暫譯: Kivy 食譜

Hugo Solis

  • 出版商: Packt Publishing
  • 出版日期: 2015-08-24
  • 售價: $2,210
  • 貴賓價: 9.5$2,100
  • 語言: 英文
  • 頁數: 246
  • 裝訂: Paperback
  • ISBN: 1783987383
  • ISBN-13: 9781783987382
  • 相關分類: Python程式語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Enhance your skills in developing multi-touch applications with Kivy

About This Book

  • Create most diverse apps and learn how to distribute them with the help of the Kivy framework
  • Explore Kivy API to develop user interfaces and control multi-touch events
  • Step-by-step recipes that provide deeper understanding of the Kivy 1.9.0 framework
  • Build and use your own events, widgets and gestures using features and tools in Kivy

Who This Book Is For

This book is intended for developers who want to use features of the Kivy framework and develop multi-touch applications. Prior experience with Kivy is not required, although familiarity with Python is expected.

What You Will Learn

  • Access widgets defined inside Kv language in your Python code
  • Handle Kivy events to control widgets, touches, the mouse, the keyboard, and animations
  • Recognize touch shapes and detecting multi-tapping
  • Create custom events and declare properties
  • Organizing your layouts while working with the ActionBar
  • Store and retrieve the coordinate space context
  • Create your own shader and render in a framebuffer
  • Leverage Factory objects, multi-touch in iOS and multi-touch in Android

In Detail

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.

Style and approach

This is an easy-to-follow practical guide packed with graspable recipes that cover important tasks to be performed while developing multi-touch applications with Kivy. All the code used in each recipe is explained in detail.

商品描述(中文翻譯)

提升您在 Kivy 開發多點觸控應用程式的技能

本書介紹



  • 利用 Kivy 框架創建最具多樣性的應用程式,並學習如何分發它們

  • 探索 Kivy API 以開發使用者介面並控制多點觸控事件

  • 逐步食譜,提供對 Kivy 1.9.0 框架的深入理解

  • 使用 Kivy 中的功能和工具構建和使用您自己的事件、小部件和手勢

本書適合誰閱讀


本書旨在為希望使用 Kivy 框架功能並開發多點觸控應用程式的開發人員而寫。雖然不需要具備 Kivy 的先前經驗,但預期讀者對 Python 有一定的熟悉度。

您將學到什麼



  • 在您的 Python 代碼中訪問在 Kv 語言中定義的小部件

  • 處理 Kivy 事件以控制小部件、觸控、滑鼠、鍵盤和動畫

  • 識別觸控形狀並檢測多次點擊

  • 創建自定義事件並聲明屬性

  • 在使用 ActionBar 時組織您的佈局

  • 存儲和檢索坐標空間上下文

  • 創建自己的著色器並在幀緩衝區中渲染

  • 利用 Factory 物件、iOS 的多點觸控和 Android 的多點觸控

詳細內容


Kivy 是一個開源的 Python 庫,用於快速開發利用創新使用者介面的應用程式,例如多點觸控應用程式。它是一個有前景的 Python 框架,旨在跨平台環境中開發 UI 和 UX 應用程式,遵循 Python 的哲學。


Kivy Cookbook 是一本實用的書籍,將指導您通過 Kivy 框架開發應用程式,並使您的應用程式準備好在 App Store 和 Android 設備上分發。


您將從安裝 Kivy 和構建您的介面開始。您將學習如何使用加速度計並創建自定義事件。接著,您將了解如何使用基本元件、按鈕、標籤和文本輸入,並操作小部件樹。然後,您將能夠處理操作指令,創建圖集和佈局。接下來,您將學習為 Windows 和 iOS 打包,並使用 TestDrive。


在本書結束時,您將詳細了解 Kivy 中的相關功能和工具,以及如何創建可攜式包以在最常用的平台上分發您的應用程式。

風格與方法


這是一本易於遵循的實用指南,包含可掌握的食譜,涵蓋在使用 Kivy 開發多點觸控應用程式時需要執行的重要任務。每個食譜中使用的所有代碼都有詳細的解釋。