Python GUI Programming Cookbook 3/e Develop functional and responsive user interfaces with tkinter and PyQt5

Meier, Burkhard

  • 出版商: Packt Publishing
  • 出版日期: 2019-10-11
  • 售價: $1,380
  • 貴賓價: 9.5$1,311
  • 語言: 英文
  • 頁數: 486
  • 裝訂: Paperback
  • ISBN: 1838827544
  • ISBN-13: 9781838827540
  • 相關分類: Python程式語言使用者介面 UI
  • 立即出貨 (庫存=1)

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

商品描述

Key Features

  • Use object-oriented programming to develop impressive GUIs in Python
  • Create interesting charts to visually represent data using Matplotlib
  • Develop GUIs with the latest versions of tkinter, PyQt5, and wxPython frameworks

Book Description

Python is a multi-domain, interpreted programming language that is easy to learn and implement. With its wide support for frameworks to develop GUIs, you can build interactive and beautiful GUI-based applications easily using Python. This third edition of Python GUI Programming Cookbook follows a task-based approach to help you create effective GUIs with the smallest amount of code. Every recipe in this book builds upon the last to create an entire, real-life GUI application. These recipes also help you solve problems that you might encounter while developing GUIs. This book mainly focuses on using Python's built-in tkinter GUI framework. You'll learn how to create GUIs in Python using simple programming styles and object-oriented programming (OOP). As you add more widgets and expand your GUI, you will learn how to connect to networks, databases, and graphical libraries that greatly enhance the functionality of your GUI. You'll also learn how to use threading to ensure that your GUI doesn't become unresponsive. Toward the end, you'll learn about the versatile PyQt GUI framework, which comes along with its own visual editor that allows you to design GUIs using drag and drop features. By the end of the book, you'll be an expert in designing Python GUIs and be able to develop a variety of GUI applications with ease.

What you will learn

  • Create amazing GUIs with Python's built-in tkinter module
  • Customize GUIs using layout managers to arrange GUI widgets
  • Advance from the typical waterfall coding style to an OOP style using Python
  • Develop beautiful charts using the free Matplotlib Python module
  • Use threading in a networked environment to make GUIs responsive
  • Discover ways to connect GUIs to a MySQL database
  • Understand how unit tests can be created and internationalize GUI
  • Delve into the world of GUI creation using PyQt5

Who this book is for

If you're a programmer or developer looking to enhance your Python skills by writing powerful GUI applications, this book is for you. Familiarity with the Python programming language is necessary to get the most out of the book.

商品描述(中文翻譯)

主要特點


  • 使用物件導向程式設計在Python中開發令人印象深刻的GUI

  • 使用Matplotlib創建有趣的圖表來視覺化數據

  • 使用最新版本的tkinter、PyQt5和wxPython框架開發GUI

書籍描述

Python是一種多領域、解釋型的程式語言,易於學習和實現。由於Python對於開發GUI的框架有廣泛的支援,您可以輕鬆地使用Python建立交互式和美觀的基於GUI的應用程式。這本《Python GUI Programming Cookbook》的第三版採用了基於任務的方法,幫助您以最少的程式碼創建有效的GUI。本書中的每個範例都建立在上一個範例的基礎上,以創建一個完整的實際GUI應用程式。這些範例還幫助您解決在開發GUI時可能遇到的問題。本書主要關注使用Python內建的tkinter GUI框架。您將學習如何使用簡單的程式設計風格和物件導向程式設計(OOP)在Python中創建GUI。隨著您添加更多的小工具並擴展您的GUI,您將學習如何連接到網絡、數據庫和圖形庫,從而大大增強您的GUI的功能。您還將學習如何使用線程確保您的GUI不會變得無響應。最後,您將學習到多功能的PyQt GUI框架,該框架附帶了自己的可視化編輯器,可以使用拖放功能設計GUI。通過閱讀本書,您將成為設計Python GUI的專家,並能夠輕鬆開發各種GUI應用程式。

您將學到什麼


  • 使用Python內建的tkinter模組創建令人驚嘆的GUI

  • 使用佈局管理器自定義GUI以安排GUI小工具

  • 從典型的瀑布式編碼風格進階到使用Python的OOP風格

  • 使用免費的Matplotlib Python模組開發美麗的圖表

  • 在網絡環境中使用線程使GUI具有響應性

  • 探索將GUI連接到MySQL數據庫的方法

  • 了解如何創建單元測試並國際化GUI

  • 深入研究使用PyQt5創建GUI的世界

適合閱讀對象

如果您是一位程式設計師或開發人員,希望通過撰寫功能強大的GUI應用程式來提升您的Python技能,那麼本書適合您。熟悉Python程式語言對於從本書中獲得最大收益是必要的。

作者簡介

Burkhard Meier has more than 19 years of professional experience working in the software industry as a software tester and developer, specializing in software test automation development, execution, and analysis. He has a very strong background in Python 3 software test automation development, as well as in SQL relational database administration, the development of stored procedures, and debugging code.

His previous jobs include working as a senior test automation engineer and designer for InfoGenesis (now Agilysys), QAD, InTouch Health, and FLIR Systems.

Over the past three years, he has also developed several video courses on Python for Packt, the latest course being Mastering Object-Oriented Programming with Python.

作者簡介(中文翻譯)

Burkhard Meier在軟體業擁有超過19年的專業經驗,擔任軟體測試員和開發人員,專注於軟體測試自動化開發、執行和分析。他在Python 3軟體測試自動化開發方面具有非常強大的背景,同時也擁有SQL關聯式資料庫管理、儲存過程開發和程式碼除錯的豐富經驗。

他之前的工作包括在InfoGenesis(現在是Agilysys)、QAD、InTouch Health和FLIR Systems擔任高級測試自動化工程師和設計師。

在過去的三年中,他還為Packt開發了幾個關於Python的視頻課程,其中最新的課程是《精通Python面向對象編程》。

目錄大綱

  1. Creating the GUI form and adding widgets
  2. Layout management
  3. Look and feel customization
  4. Data and classes
  5. Matplotlib charts
  6. Threads and networking
  7. Storing data in our mysql database via our GUI
  8. Internationalization and testing
  9. Extending our GUI with the wxpython library
  10. Building GUI's with PyQt5
  11. Best practices

目錄大綱(中文翻譯)

1. 創建 GUI 表單並添加小工具
2. 佈局管理
3. 外觀自定義
4. 數據和類別
5. Matplotlib 圖表
6. 線程和網絡
7. 通過 GUI 將數據存儲在我們的 MySQL 數據庫中
8. 國際化和測試
9. 使用 wxPython 库擴展我們的 GUI
10. 使用 PyQt5 構建 GUI
11. 最佳實踐