開發四年只會寫業務代碼,分布式高并發都不會還做程式員?->>>
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一樣高呢?
uj5u.com熱心網友回復:
tv = ttk.Treeview(win, show='headings')添加show引數
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/10145.html
標籤:其他技術討論專區
上一篇:LR腳本回放
下一篇:足球大資料分析預測賽果
