Tkinter GUI Programming by Example: Learn to create modern GUIs using Tkinter by building real-world projects in Python

David Love

  • 出版商: Packt Publishing
  • 出版日期: 2018-04-25
  • 售價: $2,170
  • 貴賓價: 9.5$2,062
  • 語言: 英文
  • 頁數: 340
  • 裝訂: Paperback
  • ISBN: 1788627482
  • ISBN-13: 9781788627481
  • 相關分類: Python
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述

Leverage the power of Python and its de facto GUI framework to build highly interactive interfaces

Key Features

  • The fundamentals of Python and GUI programming with Tkinter.
  • Create multiple cross-platform projects by integrating a host of third-party libraries and tools.
  • Build beautiful and highly-interactive user interfaces that target multiple devices.

Book Description

Tkinter is a modular, cross-platform application development toolkit for Python. When developing GUI-rich applications, the most important choices are which programming language(s) and which GUI framework to use. Python and Tkinter prove to be a great combination. This book will get you familiar with Tkinter by having you create fun and interactive projects. These projects have varying degrees of complexity. We'll start with a simple project, where you'll learn the fundamentals of GUI programming and the basics of working with a Tkinter application. After getting the basics right, we'll move on to creating a project of slightly increased complexity, such as a highly customizable Python editor. In the next project, we'll crank up the complexity level to create an instant messaging app. Toward the end, we'll discuss various ways of packaging our applications so that they can be shared and installed on other machines without the user having to learn how to install and run Python programs.

What you will learn

  • Create a scrollable frame via theCanvas widget
  • Use the pack geometry manager andFrame widget to control layout
  • Learn to choose a data structurefor a game
  • Group Tkinter widgets, such asbuttons, canvases, and labels
  • Create a highly customizablePython editor
  • Design and lay out a chat window

Who This Book Is For

This book is for beginners to GUI programming who haven't used Tkinter yet and are eager to start building great-looking and user-friendly GUIs. Prior knowledge of Python programming is expected.

Table of Contents

  1. Meet Tkinter
  2. Back to the Command Line - Basic Blackjack
  3. Jack is Back in Style - the Blackjack GUI
  4. The Finishing Touches - Sound and Animation
  5. Creating a Highly Customizable Python Editor
  6. Color Me Impressed! - Adding Syntax Highlighting
  7. Not Just for Restaurants - All About Menus
  8. Talk Python to Me - a Chat Application
  9. Connecting - Getting Our Chat Client Online
  10. Making Friends - Finishing Our Chat Application
  11. Wrapping Up - Packaging Our Applications to Share

商品描述(中文翻譯)

利用Python及其事實上的GUI框架來建立高度互動的介面

主要特點:
- 使用Tkinter進行Python和GUI編程的基礎知識。
- 通過集成多個第三方庫和工具來創建多個跨平台項目。
- 構建美觀且高度互動的用戶界面,以滿足多個設備的需求。

書籍描述:
Tkinter是Python的模塊化跨平台應用程序開發工具包。在開發GUI豐富的應用程序時,最重要的選擇是使用哪種編程語言和GUI框架。Python和Tkinter組合起來非常出色。本書將通過創建有趣且互動的項目來使您熟悉Tkinter。這些項目的複雜程度各不相同。我們將從一個簡單的項目開始,您將學習GUI編程的基礎知識以及使用Tkinter應用程序的基本知識。在掌握基礎知識後,我們將繼續創建一個稍微複雜的項目,例如高度可自定義的Python編輯器。在下一個項目中,我們將提高複雜性,創建一個即時通訊應用程序。最後,我們將討論各種打包應用程序的方法,以便可以在其他計算機上共享和安裝,而用戶無需學習如何安裝和運行Python程序。

您將學到什麼:
- 通過Canvas小部件創建可滾動的框架
- 使用pack幾何管理器和Frame小部件來控制佈局
- 學習為遊戲選擇數據結構
- 將Tkinter小部件分組,例如按鈕、畫布和標籤
- 創建高度可自定義的Python編輯器
- 設計和佈局聊天窗口

本書適合對GUI編程尚未使用Tkinter並渴望開始構建外觀出色且用戶友好的GUI的初學者。需要具備Python編程的基礎知識。

目錄:
1. 認識Tkinter
2. 回到命令行 - 基本的二十一點遊戲
3. 風格獨特的二十一點GUI
4. 最後的修飾 - 音效和動畫
5. 創建高度可自定義的Python編輯器
6. 令人印象深刻的顏色!- 添加語法高亮
7. 不僅僅是餐廳 - 關於菜單的一切
8. 與我交談 - 聊天應用程序
9. 連接 - 讓我們的聊天客戶端上線
10. 交朋友 - 完成我們的聊天應用程序
11. 總結 - 打包我們的應用程序以進行共享