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

Handling mouse and keyboard events

Being able to react to events is one of the most basic but important topics in GUI application development since it determines how users can interact with the program.

Pressing keys of the keyboard and clicking on items with the mouse are some common types of events, which are automatically handled in some Tkinter classes. For instance, this behavior is already implemented on the command option of the Button widget class, which invokes the specified callback function.

Some events can get triggered without user interaction, such as changing the input focus programmatically from one widget to another.

主站蜘蛛池模板: 余姚市| 扎兰屯市| 巴彦县| 蒲城县| 哈密市| 时尚| 道真| 都江堰市| 渝中区| 剑川县| 中江县| 瑞昌市| 台东市| 晋宁县| 新建县| 丁青县| 淅川县| 专栏| 衡阳县| 溧阳市| 邛崃市| 临猗县| 大丰市| 那坡县| 吴忠市| 府谷县| 淮安市| 黄冈市| 高台县| 香河县| 穆棱市| 清丰县| 柳江县| 英超| 长春市| 饶河县| 阜新市| 乌兰察布市| 耒阳市| 都昌县| 措勤县|