修改部分小问题

UIController
Timmoc 10 months ago
parent 3de235526a
commit 5d420e9ab5

@ -10,7 +10,7 @@ from entity.BilibiliVideo import BilibiliVideo
class SpyderController: class SpyderController:
# Bilibili视频爬虫控制器,打开网页,爬取BilibiliVideo.py中的数据,将其下载下来保存为csv文件 # Bilibili视频爬虫控制器,打开网页,爬取符合BilibiliVideo.py中的数据,将其下载下来保存为csv文件
def getBilibiliVideoList(self, videoCount, threadCount, waitTime): def getBilibiliVideoList(self, videoCount, threadCount, waitTime):
""" """
整个爬虫的调用程序 整个爬虫的调用程序

@ -20,9 +20,9 @@ class UIController:
print("zzr1") print("zzr1")
#一些属性 #一些属性
##csv文件路径 ##csv文件路径
csv_path=".\csv_file" csv_path="./csv_file"
## ##
excel_path=".\excel_file" excel_path="./excel_file"
# 创建主窗口 # 创建主窗口
root = tk.Tk() root = tk.Tk()
root.title("Python UI") root.title("Python UI")
@ -113,7 +113,7 @@ class UIController:
button_stop.grid(row=4, column=1,sticky=tk.W) 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 = 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_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) 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")) tree = ttk.Treeview(root, columns=("bvid", "title","url","upload","topNo","viewCount","likeCount","coinCount","favorite","commentCount","bolletCount","creatorld","creatorName","createFanCount"))

Loading…
Cancel
Save