【发布时间】:2015-04-20 16:11:04
【问题描述】:
我希望能够从单选按钮检索文本值。
例如:
first = Radiobutton(frame, text=name, variable=V, value=0)
second = Radiobutton(frame, text=name, variable=V, value=1)
third = Radiobutton(frame, text=name, variable=V, value=3)
buttonPressed = V.get()
这会给我价值,但我想弄清楚如何获得 文本值。因为我的按钮是从通用属性列表创建的 来自 XML 文档。
【问题讨论】:
标签: python python-3.x tkinter