diff --git a/delete.py b/delete.py index 0a47c18..c221e1b 100644 --- a/delete.py +++ b/delete.py @@ -8,6 +8,8 @@ root_1 = 'pip uninstall' ok = '安装完成' ok2 = '删除完成' uninstall = 'pip uninstall' +ml = os.getcwd() +file_error = '文件丢失,请重新安装' def open_exe(exe_name): diff --git a/install.py b/install.py index 9b0ff5b..d6e9c55 100644 --- a/install.py +++ b/install.py @@ -11,7 +11,7 @@ file_error = '文件丢失,请重新安装' -def open_exe(): +def open_exe(exe_name): if os.path.exists(os.path.join(ml, f"{exe_name}.exe")): os.system(f"start {exe_name}.exe") else: diff --git a/update.py b/update.py index e84bdfe..30287eb 100644 --- a/update.py +++ b/update.py @@ -15,7 +15,6 @@ pyqt5库编写浏览器的问题 当前版本:0.1.0""" text_box = ScrolledText(update) -text_box.pack(fill=BOTH, expand=1) text_box.insert(END, text) text_box.configure(state='disabled') @@ -29,6 +28,7 @@ def quit_update(): update.destroy() pass # 按钮设置 +text_box.pack(fill=BOTH, expand=1, side=RIGHT) update_now_bt = Button(update, text='更新到最新版本', command=update_now).pack(side=RIGHT) quit_window_bt = Button(update, text='返回', command=quit_update).pack(side=RIGHT)