- Tkinter GUI Application Development Blueprints(Second Edition)
- Bhaskar Chaudhary
- 104字
- 2021-06-24 18:35:04
Events and callbacks – adding life to programs
Now that you have learned how to add widgets to a screen and position them where you want, let's turn our attention to the third component of GUI programming.
This addresses the question of how to make widgets functional.
Making widgets functional involves making them responsive to events such as the pressing of buttons, the pressing of keys on a keyboard, and mouse clicks.
This requires associating callbacks with specific events. Callbacks are normally associated with specific widget events using command binding rules, which are discussed in the following section.
推薦閱讀
- 極簡(jiǎn)算法史:從數(shù)學(xué)到機(jī)器的故事
- Python自動(dòng)化運(yùn)維快速入門(mén)(第2版)
- Programming ArcGIS 10.1 with Python Cookbook
- Java開(kāi)發(fā)入行真功夫
- Python高級(jí)編程
- RTC程序設(shè)計(jì):實(shí)時(shí)音視頻權(quán)威指南
- 64位匯編語(yǔ)言的編程藝術(shù)
- 你必須知道的204個(gè)Visual C++開(kāi)發(fā)問(wèn)題
- Java EE 7 Performance Tuning and Optimization
- 青少年學(xué)Python(第1冊(cè))
- C語(yǔ)言程序設(shè)計(jì)
- App Inventor創(chuàng)意趣味編程進(jìn)階
- ArcGIS for Desktop Cookbook
- UI設(shè)計(jì)全書(shū)(全彩)
- JavaScript+jQuery網(wǎng)頁(yè)特效設(shè)計(jì)任務(wù)驅(qū)動(dòng)教程