官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 大洼县| 马鞍山市| 临武县| 博兴县| 建平县| 大邑县| 沁水县| 长乐市| 南郑县| 印江| 洪泽县| 洱源县| 东乌| 龙井市| 铜梁县| 遂溪县| 长沙县| 五华县| 仲巴县| 林周县| 松滋市| 屏东市| 庆元县| 扎赉特旗| 永清县| 巧家县| 汝南县| 南郑县| 徐州市| 博罗县| 奎屯市| 介休市| 房产| 淮安市| 新泰市| 莎车县| 和田市| 平南县| 合肥市| 陇西县| 卢氏县|