当我打印“chunk”时,输出会显示“PY\u VAR0”我哪里出错了
chunk = IntVar(root)
chunk.set("4") # default value to show on the GUI
print chunk
#option for segment size
chunkOption = OptionMenu(root, chunk,"4", "16", "32", "64", "128", "265", "512" )
chunkOption.pack(side=Tkinter.TOP)
Tags:
要在
IntVar
中使用值,必须使用get
方法获取值:相关问题 更多 >
编程相关推荐