📜  如何从 tkinter 中的标签中获取文本 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:27.981000             🧑  作者: Mango

代码示例1
l = tk.Label(text="hello, world")
...
print("the label is", l.cget("text"))
#Outputs: the labels is hello, world