- 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.
推薦閱讀
- Data Visualization with D3 4.x Cookbook(Second Edition)
- HTML5+CSS3王者歸來
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- Ext JS Data-driven Application Design
- 青少年美育趣味課堂:XMind思維導圖制作
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- Java系統化項目開發教程
- Nginx Lua開發實戰
- OpenGL Data Visualization Cookbook
- 智能手機APP UI設計與應用任務教程
- C語言程序設計實訓教程與水平考試指導
- Learning iOS Security
- UML軟件建模
- Mastering VMware Horizon 7(Second Edition)
- Learning D