我的窗口中有一个输入字段,我想在输入字段中键入一些内容, 按enter键,会发生一些事情,但它不起作用,因为当我键入某些内容后按enter键时,光标仍在输入字段中
这是我一直使用的代码过度简化(这个问题的非重要部分被忽略了)
from tkinter import *
def some_func():
#other code I want to happen when I press enter
root = Tk()
entry_one_root = Entry(root).place(x=0, y=0)
root.mainloop()
有办法解决这个问题吗? 谢谢你的帮助
这就是你要找的吗
相关问题 更多 >
编程相关推荐