- 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
推薦閱讀
- Mastering Zabbix(Second Edition)
- Cocos2d-x游戲開發(fā):手把手教你Lua語言的編程方法
- Web交互界面設計與制作(微課版)
- Python程序設計(第3版)
- 從程序員到架構(gòu)師:大數(shù)據(jù)量、緩存、高并發(fā)、微服務、多團隊協(xié)同等核心場景實戰(zhàn)
- Java FX應用開發(fā)教程
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- Scala程序員面試算法寶典
- Learning Probabilistic Graphical Models in R
- TMS320LF240x芯片原理、設計及應用
- Modernizing Legacy Applications in PHP
- 從零學Java設計模式
- WCF技術(shù)剖析(卷1)
- 現(xiàn)代C++語言核心特性解析
- 劍指大數(shù)據(jù):企業(yè)級電商數(shù)據(jù)倉庫項目實戰(zhàn)(精華版)