|
- tv = ttk.Treeview(win,)
- tv["columns"] = ('a','b','c')
- tv.grid(row=4,columnspan=4)
- vbar = ttk.Scrollbar(win, command=tv.yview)
- vbar.grid(row=4,column=4)
- tv.configure(yscrollcommand=vbar.set)
- tv.column('a', width=50)
- tv.column('b',width=100)
- tv.column('c',width=100)
- tv.heading('a',text='编号')
- tv.heading('b',text='说明')
- tv.heading('c',text='地址')
复制代码
编号左边为什么要多出一列?不该有啊。
另外右边的滚动条,怎么让它和treeview一样高呢?
|
|