Kivy Cookbook

Hugo Solis

  • 出版商: Packt Publishing
  • 出版日期: 2015-08-24
  • 售價: $2,010
  • 貴賓價: 9.5$1,910
  • 語言: 英文
  • 頁數: 246
  • 裝訂: Paperback
  • ISBN: 1783987383
  • ISBN-13: 9781783987382
  • 相關分類: Python程式語言
  • 下單後立即進貨 (約3~4週)

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

商品描述

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時組織您的佈局
- 存儲和檢索座標空間上下文
- 創建自己的着色器並在帧緩衝區中渲染
- 利用工廠對象,在iOS中進行多點觸控和在Android中進行多點觸控

詳細內容

Kivy是一個開源的Python庫,用於快速開發使用創新用戶界面的應用程式,例如多點觸控應用程式。它是一個有前途的Python框架,可在跨平台環境下開發UI和UX應用程式,符合Python的理念。

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

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

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

風格和方法

這是一本易於理解的實用指南,充滿了易於理解的示例,涵蓋了使用Kivy開發多點觸控應用程式時需要執行的重要任務。每個示例中使用的代碼都有詳細的解釋。