【发布时间】:2018-06-20 23:48:23
【问题描述】:
我有这个函数作为我的代码的一部分,我正在尝试从 tk 转移到 pyqt,但我在 pyqt 方面没有太多经验。我正在尝试生成一个 Tkinter 字符串变量列表来存储条目。
def generate_stringvars(self):
temp_entriesx = []
count = 0
while count < 21:
e = tk.StringVar()
e.set("")
temp_entriesx.append(e)
count += 1
return temp_entriesx
如何更改 tk.StringVar() 以使其在 pyqt 中工作?
谢谢
【问题讨论】: