Tkinter GUI Application Development Blueprints
Bhaskar Chaudhary
- 出版商: Packt Publishing
- 出版日期: 2015-11-30
- 售價: $1,970
- 貴賓價: 9.5 折 $1,872
- 語言: 英文
- 頁數: 340
- 裝訂: Paperback
- ISBN: 1785889737
- ISBN-13: 9781785889738
-
相關分類:
使用者介面 UI
海外代購書籍(需單獨結帳)
相關主題
商品描述
Master GUI programming in Tkinter as you design, implement, and deliver ten real-world applications from start to finish
About This Book
- Conceptualize and build state-of-art GUI applications with Tkinter
- Tackle the complexity of just about any size GUI application with a structured and scalable approach
- A project-based, practical guide to get hands-on into Tkinter GUI development
Who This Book Is For
Software developers, scientists, researchers, engineers, students, or programming hobbyists with basic familiarity in Python will find this book interesting and informative. People familiar with basic programming constructs in other programming language can also catch up with some brief reading on Python. No GUI programming experience is expected.
What You Will Learn
- Get to know the basic concepts of GUI programming, such as Tkinter top-level widgets, geometry management, event handling, using callbacks, custom styling, and dialogs
- Create apps that can be scaled in size or complexity without breaking down the core
- Write your own GUI framework for maximum code reuse
- Build apps using both procedural and OOP styles, understanding the strengths and limitations of both styles
- Learn to structure and build large GUI applications based on Model-View-Controller (MVC) architecture
- Build multithreaded and database-driven apps
- Create apps that leverage resources from the network
- Learn basics of 2D and 3D animation in GUI applications
- Develop apps that can persist application data with object serialization and tools such as configparser
In Detail
Tkinter is the built-in GUI package that comes with standard Python distributions. It is a cross-platform package, which means you build once and deploy everywhere. It is simple to use and intuitive in nature, making it suitable for programmers and non-programmers alike.
This book will help you master the art of GUI programming. It delivers the bigger picture of GUI programming by building real-world, productive, and fun applications such as a text editor, drum machine, game of chess, media player, drawing application, chat application, screen saver, port scanner, and many more. In every project, you will build on the skills acquired in the previous project and gain more expertise.
You will learn to write multithreaded programs, network programs, database driven programs and more. You will also get to know the modern best practices involved in writing GUI apps. With its rich source of sample code, you can build upon the knowledge gained with this book and use it in your own projects in the discipline of your choice.
Style and approach
An easy-to-follow guide, full of hands-on examples of real-world GUI programs. The first chapter is a must read as it explains most of the things you need to get started with writing GUI programs with Tkinter. Each subsequent chapter is a stand-alone project that discusses some aspects of GUI programming in detail. These chapters can be read sequentially or randomly depending upon the readers experience with Python.
商品描述(中文翻譯)
在設計、實現和交付十個真實應用程序的過程中,掌握Tkinter中的GUI編程。
關於本書
- 使用Tkinter構建最先進的GUI應用程序
- 以結構化和可擴展的方式應對任何規模的GUI應用程序的複雜性
- 一本以項目為基礎的實用指南,讓您親自體驗Tkinter GUI開發
適合閱讀對象
- 軟件開發人員、科學家、研究人員、工程師、學生或具有Python基本熟悉度的程式愛好者將會對本書感興趣並獲得有用的信息。對其他編程語言的基本編程概念熟悉的人也可以通過簡短的Python閱讀來跟上。不需要有GUI編程經驗。
學到什麼
- 了解GUI編程的基本概念,如Tkinter頂級小部件、幾何管理、事件處理、使用回調、自定義樣式和對話框
- 創建可以按大小或複雜性進行擴展而不會破壞核心的應用程序
- 編寫自己的GUI框架以實現最大程度的代碼重用
- 使用過程化和面向對象的風格構建應用程序,了解兩種風格的優點和局限性
- 學習基於模型-視圖-控制器(MVC)架構構建大型GUI應用程序
- 構建多線程和數據庫驅動的應用程序
- 創建利用網絡資源的應用程序
- 在GUI應用程序中學習2D和3D動畫的基礎知識
- 開發可以使用對象序列化和configparser等工具持久化應用程序數據的應用程序
詳細內容
Tkinter是隨Python標準發行版附帶的內置GUI套件。它是一個跨平台的套件,這意味著您只需編寫一次,就可以在任何地方部署。它易於使用且直觀,適合程式設計師和非程式設計師使用。
本書將幫助您掌握GUI編程的藝術。它通過構建真實、高效且有趣的應用程序(如文本編輯器、鼓機、國際象棋遊戲、媒體播放器、繪圖應用程序、聊天應用程序、屏幕保護程序、端口掃描器等)傳遞GUI編程的整體圖景。在每個項目中,您將在前一個項目中獲得的技能基礎上進一步提升專業知識。
您將學習編寫多線程程序、網絡程序、數據庫驅動程序等。您還將了解編寫GUI應用程序的現代最佳實踐。通過豐富的示例代碼,您可以在自己選擇的領域中建立在本書中獲得的知識基礎上,並將其應用於自己的項目中。
風格和方法
這是一本易於理解的指南,充滿了實際的GUI程序示例。第一章是必讀的,因為它解釋了撰寫Tkinter GUI程序所需的大部分內容。每個後續章節都是一個獨立的項目,詳細討論了GUI編程的某些方面。這些章節可以按順序或隨機閱讀,具體取決於讀者對Python的經驗。