- 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.
- Web前端開發(fā)技術(shù):HTML、CSS、JavaScript(第3版)
- Linux C/C++服務(wù)器開發(fā)實(shí)踐
- ASP.NET Core 2 and Vue.js
- 基于免疫進(jìn)化的算法及應(yīng)用研究
- SEO實(shí)戰(zhàn)密碼
- 精通網(wǎng)絡(luò)視頻核心開發(fā)技術(shù)
- C語言程序設(shè)計(jì)
- HTML5+CSS3+jQuery Mobile APP與移動(dòng)網(wǎng)站設(shè)計(jì)從入門到精通
- Android移動(dòng)應(yīng)用開發(fā)項(xiàng)目教程
- Java多線程并發(fā)體系實(shí)戰(zhàn)(微課視頻版)
- Spark技術(shù)內(nèi)幕:深入解析Spark內(nèi)核架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)原理
- 零基礎(chǔ)學(xué)編程系列(全5冊(cè))
- Go Systems Programming
- 軟件再工程:優(yōu)化現(xiàn)有軟件系統(tǒng)的方法與最佳實(shí)踐
- R語言數(shù)據(jù)分析從入門到實(shí)戰(zhàn)