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

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.

主站蜘蛛池模板: 叶城县| 上虞市| 河津市| 津南区| 长乐市| 福贡县| 游戏| 宁都县| 玉溪市| 涞水县| 赣州市| 辉县市| 南川市| 个旧市| 虞城县| 郁南县| 佛冈县| 广昌县| 抚州市| 丰城市| 大庆市| 读书| 蓬溪县| 宁陵县| 兰溪市| 湾仔区| 四川省| 饶河县| 永川市| 阳城县| 册亨县| 宝清县| 盐源县| 西华县| 滦平县| 永兴县| 安阳市| 丰原市| 东宁县| 吴川市| 万源市|