【发布时间】:2021-02-03 04:37:38
【问题描述】:
首先,当我的光标在输入框(entrybox.focus())时,我想使用键盘上的 F4 键(GUI.bind('<F4>', directselection))直接选择树视图中的第一个数据,而不是使用鼠标。
我不知道要创建这个函数。我正在尝试使用
def directselection(event = None):
treeviewtable.focus()
但它不起作用。
【问题讨论】:
标签: python tkinter treeview ttk