阅读背景:

Python - tkinter小部件的数组随点击radiobutton而改变

来源:互联网 

I'm working on a GUI in Python using tkinter. I'm reading a text file in and creating GUI elements dynamically based on the lines in the text file. I have an array for each of my element types, which include labels, radiobutton variables (StringVars), and colored circles (drawn with create_oval). My goal is that when the user changes a radiobutton from "not assigned" to "in" or "out", the colored circle on that line will change from yellow to green. Here's how the GUI looks after the text file has been read in:I'm working on a GUI in Python using tkinter. I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: