|
|
|
@ -20,9 +20,9 @@ class UIController:
|
|
|
|
|
print("zzr1")
|
|
|
|
|
#一些属性
|
|
|
|
|
##csv文件路径
|
|
|
|
|
csv_path=".\csv_file"
|
|
|
|
|
csv_path="./csv_file"
|
|
|
|
|
##
|
|
|
|
|
excel_path=".\excel_file"
|
|
|
|
|
excel_path="./excel_file"
|
|
|
|
|
# 创建主窗口
|
|
|
|
|
root = tk.Tk()
|
|
|
|
|
root.title("Python UI")
|
|
|
|
@ -113,7 +113,7 @@ class UIController:
|
|
|
|
|
button_stop.grid(row=4, column=1,sticky=tk.W)
|
|
|
|
|
button_save_to_excel = tk.Button(root, text="save to excel", command=button_save_to_exce_click)
|
|
|
|
|
button_save_to_excel.grid(row=5, column=1, sticky=tk.W)
|
|
|
|
|
button_save_to_csv = tk.Button(root, text="save to excel", command=button_save_to_csv_click)
|
|
|
|
|
button_save_to_csv = tk.Button(root, text="save to csv", command=button_save_to_csv_click)
|
|
|
|
|
button_save_to_csv.grid(row=6, column=1,sticky=tk.W)
|
|
|
|
|
# 创建一个带展示框
|
|
|
|
|
tree = ttk.Treeview(root, columns=("bvid", "title","url","upload","topNo","viewCount","likeCount","coinCount","favorite","commentCount","bolletCount","creatorld","creatorName","createFanCount"))
|
|
|
|
|