From 6702a51693fdb7f2e09d0a7e9f881d3f5e6fd5b2 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 10 Jul 2022 07:54:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=901.6.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deepin-wine-runner-update-bug | 4 ++-- main.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deepin-wine-runner-update-bug b/deepin-wine-runner-update-bug index a0756a8..54e5667 100755 --- a/deepin-wine-runner-update-bug +++ b/deepin-wine-runner-update-bug @@ -48,7 +48,7 @@ def OpenGithubIssues(): def OpenGitlinkIssues(): webbrowser.open_new_tab("https://www.gitlink.org.cn/gfdgd_xi/deep-wine-runner/issues") - + # 获取用户主目录 def get_home()->"获取用户主目录": return os.path.expanduser('~') @@ -100,7 +100,7 @@ otherUpload = ttk.Frame(win) tips = ttk.Label(otherUpload, text="如果无法正常反馈,可以用其他方式反馈:") giteeButton = ttk.Button(otherUpload, text="Gitee Issues", command=OpenGiteeIssues) githubButton = ttk.Button(otherUpload, text="Github Issues", command=OpenGithubIssues) -gitlinkButton = ttk.Button(otherUpload, text="Github Issues", command=OpenGitlinkIssues) +gitlinkButton = ttk.Button(otherUpload, text="Gitlink Issues", command=OpenGitlinkIssues) updateButton = ttk.Button(win, text="提交", command=UpdateButtonClick) diff --git a/main.py b/main.py index 7db0923..a47eee7 100755 --- a/main.py +++ b/main.py @@ -463,6 +463,9 @@ def ThankWindow(): def InstallWineFont(): threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -C 'echo 这些字体来自星火应用商店 && sudo ss-apt-fast install ms-core-fonts winfonts -y' --keep-open"]).start() +def WineRunnerBugUpload(): + threading.Thread(target=os.system, args=[programPath + "/deepin-wine-runner-update-bug"]).start() + class UpdateWindow(): data = {} def ShowWindow(): @@ -952,6 +955,7 @@ help.add_command(label="更新内容", command=UpdateThings) # 设置“更新 help.add_command(label="谢明名单", command=ThankWindow) help.add_separator() help.add_command(label="更新这个程序", command=UpdateWindow.ShowWindow) +help.add_command(label="反馈这个程序的建议和问题", command=WineRunnerBugUpload) help.add_command(label="关于这个程序", command=about_this_program) # 设置“关于这个程序”项 help.add_separator() moreProgram = tk.Menu(menu, tearoff=0, background="white")