Python GUI Programming Cookbook (Paperback)
暫譯: Python GUI 程式設計食譜 (平裝本)

Burkhard A. Meier

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

商品描述

Over 80 object-oriented recipes to help you create mind-blowing GUIs in Python

About This Book

  • Use object-oriented programming to develop amazing GUIs in Python
  • Create a working GUI project as a central resource for developing your Python GUIs
  • Packed with easy-to-follow recipes to help you develop code using the latest released version of Python

Who This Book Is For

If you are a Python programmer with intermediate level knowledge of GUI programming and want to learn how to create beautiful, effective, and responsive GUIs using the freely available Python GUI frameworks, this book is for you.

What You Will Learn

  • Create amazing GUIs with Python's built-in Tkinter module
  • Customize the GUIs by using layout managers to arrange the GUI widgets
  • Advance to an object-oriented programming style using Python
  • Develop beautiful charts using the free Matplotlib Python module
  • Use threading in a networked environment to make the GUIs responsive
  • Discover ways to connect the GUIs to a database
  • Understand how unit tests can be created and internationalize the GUI
  • Extend the GUIs with free Python frameworks using best practices

In Detail

Python is a multi-domain, interpreted programming language. It is a widely used general-purpose, high-level programming language. It is often used as a scripting language because of its forgiving syntax and compatibility with a wide variety of different eco-systems. Its flexible syntax enables developers to write short scripts while at the same time, they can use object-oriented concepts to develop very large projects.

Python GUI Programming Cookbook follows a task-based approach to help you create beautiful and very effective GUIs with the least amount of code necessary. This book uses the simplest programming style, using the fewest lines of code to create a GUI in Python, and then advances to using object-oriented programming in later chapters. If you are new to object-oriented programming (OOP), this book will teach you how to take advantage of the OOP coding style in the context of creating GUIs written in Python.

Throughout the book, you will develop an entire GUI application, building recipe upon recipe, connecting the GUI to a database. In the later chapters, you will explore additional Python GUI frameworks, using best practices. You will also learn how to use threading to ensure your GUI doesn't go unresponsive.

By the end of the book, you will be an expert in Python GUI programming to develop a common set of GUI applications.

Style and approach

Every recipe in this programming cookbook solves a problem you might encounter in your programming career. At the same time, most of the recipes build on each other to create an entire, real-life GUI application.

商品描述(中文翻譯)

超過80個物件導向食譜,幫助您在Python中創建驚人的GUI

本書介紹



  • 使用物件導向程式設計在Python中開發驚人的GUI

  • 創建一個可運行的GUI專案,作為開發您的Python GUI的核心資源

  • 包含易於遵循的食譜,幫助您使用最新發布版本的Python開發代碼

本書適合誰閱讀


如果您是具有中級GUI程式設計知識的Python程式設計師,並希望學習如何使用免費的Python GUI框架創建美觀、有效且響應迅速的GUI,那麼這本書適合您。

您將學到什麼



  • 使用Python內建的Tkinter模組創建驚人的GUI

  • 通過使用佈局管理器自定義GUI,排列GUI小部件

  • 使用Python進階到物件導向程式設計風格

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

  • 在網絡環境中使用執行緒,使GUI具有響應性

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

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

  • 使用最佳實踐擴展GUI,利用免費的Python框架

詳細內容


Python是一種多領域的解釋型程式語言。它是一種廣泛使用的通用高級程式語言。由於其寬容的語法和與各種不同生態系統的兼容性,它經常被用作腳本語言。其靈活的語法使開發人員能夠編寫簡短的腳本,同時也可以使用物件導向概念來開發非常大型的專案。


《Python GUI程式設計食譜》採用基於任務的方法,幫助您以最少的代碼創建美觀且非常有效的GUI。本書使用最簡單的程式設計風格,使用最少的代碼行來創建Python中的GUI,然後在後面的章節中進階到使用物件導向程式設計。如果您對物件導向程式設計(OOP)不熟悉,本書將教您如何在創建用Python編寫的GUI的背景下利用OOP編碼風格。


在整本書中,您將開發整個GUI應用程式,逐步建立食譜,將GUI連接到數據庫。在後面的章節中,您將探索其他Python GUI框架,並使用最佳實踐。您還將學習如何使用執行緒來確保您的GUI不會無響應。


到本書結束時,您將成為Python GUI程式設計的專家,能夠開發一組通用的GUI應用程式。

風格與方法


這本程式設計食譜中的每個食譜都解決了您在程式設計職業生涯中可能遇到的問題。同時,大多數食譜相互依賴,創建一個完整的、真實的GUI應用程式。