【发布时间】:2020-10-13 10:29:16
【问题描述】:
Tkiner 显示回调函数后的标签。但我在顶部显示标签。
def records():
lbl = tk.Label(recordWindow, text="recording")
lbl.grid()
Audio1()
btn = tk.Button(recordWindow, text="click to record",command=records)
btn.grid()
在此 Audio1 函数调用并显示标签。 我需要显示标签并回调函数。
我需要显示“录音”并运行 audio1() 函数。但发生的事情是在运行 audio1() 函数后它显示“录音”标签
【问题讨论】:
-
你的目标在这里对我来说不是很清楚。请尝试解释您想要什么,它的作用以及这两者之间的区别。如果可能,尝试添加minimal reproducible example :)
标签: python python-3.x tkinter tkinter-canvas tkinter-label