Mastering GUI Programming with Python

Moore, Alan D.

  • 出版商: Packt Publishing
  • 出版日期: 2019-05-24
  • 售價: $1,380
  • 貴賓價: 9.5$1,311
  • 語言: 英文
  • 頁數: 542
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 178961290X
  • ISBN-13: 9781789612905
  • 相關分類: Python使用者介面 UI
  • 立即出貨 (庫存=1)



PyQt5 has long been the most powerful and comprehensive GUI framework available for Python, yet there is a lack of cohesive resources available to teach Python programmers how to use it. This book aims to remedy the problem by providing comprehensive coverage of GUI development with PyQt5.

You will get started with an introduction to PyQt5, before going on to develop stunning GUIs with modern features. You will then learn how to build forms using QWidgets and learn about important aspects of GUI development such as layouts, size policies, and event-driven programming. Moving ahead, you’ll discover PyQt5’s most powerful features through chapters on audio-visual programming with QtMultimedia, database-driven software with QtSQL, and web browsing with QtWebEngine. Next, in-depth coverage of multithreading and asynchronous programming will help you run tasks asynchronously and build high-concurrency processes with ease. In later chapters, you’ll gain insights into QOpenGLWidget, along with mastering techniques for creating 2D graphics with QPainter. You’ll also explore PyQt on a Raspberry Pi and interface it with remote systems using QtNetwork. Finally, you will learn how to distribute your applications using setuptools and PyInstaller.

By the end of this book, you will have the skills you need to develop robust GUI applications using PyQt.


PyQt5長期以來一直是Python最強大且最全面的GUI框架,然而目前缺乏一個統一的資源來教導Python程式設計師如何使用它。本書旨在解決這個問題,提供全面的PyQt5 GUI開發指南。

您將從PyQt5的介紹開始,然後使用現代化功能開發令人驚豔的GUI。接著,您將學習使用QWidgets建立表單,並了解佈局、大小策略和事件驅動程式設計等GUI開發的重要方面。隨後,您將通過QtMultimedia進行音視頻編程、使用QtSQL進行數據庫驅動軟體開發,以及使用QtWebEngine進行網頁瀏覽,深入了解PyQt5的最強大功能。接下來,深入探討多線程和異步程式設計,幫助您以非同步方式運行任務,輕鬆構建高並發處理。在後續章節中,您將瞭解QOpenGLWidget,並掌握使用QPainter創建2D圖形的技巧。您還將探索在Raspberry Pi上使用PyQt並使用QtNetwork與遠程系統進行接口。最後,您將學習使用setuptools和PyInstaller來分發應用程式。