- Tkinter GUI Programming by Example
- David Love
- 138字
- 2021-08-27 18:49:12
Jack is Back in Style – the Blackjack GUI
Now that we have a working game with a solid, reusable data structure in place, it's time to take it to the next level by adding graphics. Not only will the graphics make the game look so much nicer to play, but we can take advantage of the ease of taking user input via graphical means.
At the end of this chapter, we will have the same blackjack game as before but with a completely new look and feel.
In this chapter, we will cover the following:
- Converting a CLI application to use a GUI
- Collecting user input via Button widgets
- Creating images that can be used by Tkinter
- Displaying images with a Canvas widget
- Controlling the layout using the pack geometry manager
- Separating display logic from application logic
推薦閱讀
- Software Testing using Visual Studio 2012
- Xcode 7 Essentials(Second Edition)
- Access 2010數據庫基礎與應用項目式教程(第3版)
- Learning Apache Kafka(Second Edition)
- Learning Python by Building Games
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(高級進階篇)
- Machine Learning in Java
- C++反匯編與逆向分析技術揭秘(第2版)
- Getting Started with Python and Raspberry Pi
- C語言程序設計習題與實驗指導
- 實戰Java高并發程序設計(第2版)
- Arduino電子設計實戰指南:零基礎篇
- Scratch從入門到精通
- WildFly Cookbook
- Python滲透測試編程技術:方法與實踐(第2版)