0
from tkinter import *
root=Tk()
root.geometry('50x50')
scrol=Scrollbar(root)
scrol.pack(side=RIGHT,fill=Y)
x=Listbox(root,yscrollcommand=scrol.set)
z=[Checkbutton(x,text=i) for i in range(100)]
for i in z:
x.insert(END,i)
i.pack()
scrol.config(command=x.yview)
x.pack()
root.mainloop()
嗨,大家好我有上面的代码中的问题,运行此代码后,不幸的是它仅返回一组数字,而不是checkbuttons集。这个代码我做错了什么Checkbuttons在列表框中的Tkinter