- Tkinter GUI Programming by Example
- David Love
- 214字
- 2021-08-27 18:49:09
Summary
With this, our Hello World application has taught us all we should need to know with regard to basic GUI functionality. We have learned how to spawn a window containing various GUI elements by utilizing Tkinter's built-in widgets. We can place these widgets into the window using special functions called geometry managers, of which we have three to choose from.
The messagebox module allows us to easily convey information to the user without having to use any widgets within our main window, and can also be used to get feedback from a user and control how our window will behave.
We've added three simple, but effective widgets to our arsenal (not including the main window): the Label, for displaying static information; the Button, which allows a user to execute functions by clicking on it; and the Entry, which gathers textual information and allows for its use by our applications.
Next on our agenda is something a little different—a game of blackjack! By writing this game, we will also cover a very common starting point among programmers interested in GUI development: having a command-line application which could be improved by becoming a graphical one. In order to do this, we will briefly step back to the world of the CLI.
- The Android Game Developer's Handbook
- LabVIEW2018中文版 虛擬儀器程序設(shè)計自學(xué)手冊
- 少年輕松趣編程:用Scratch創(chuàng)作自己的小游戲
- Flink SQL與DataStream入門、進(jìn)階與實戰(zhàn)
- Mastering Articulate Storyline
- 云計算通俗講義(第3版)
- 移動界面(Web/App)Photoshop UI設(shè)計十全大補(bǔ)
- Unity 2017 Mobile Game Development
- 邊玩邊學(xué)Scratch3.0少兒趣味編程
- Learning Bootstrap 4(Second Edition)
- Kotlin進(jìn)階實戰(zhàn)
- Python第三方庫開發(fā)應(yīng)用實戰(zhàn)
- 實戰(zhàn)Python網(wǎng)絡(luò)爬蟲
- Flink核心技術(shù):源碼剖析與特性開發(fā)
- 基于MATLAB的控制系統(tǒng)仿真及應(yīng)用