From aba515512038eccff2b0eff2993b4f541ee838cb Mon Sep 17 00:00:00 2001 From: Falco Lee Date: Thu, 20 Aug 2020 14:25:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BA=90=E7=A0=81=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud189-singer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cloud189-singer.py b/cloud189-singer.py index 6c05ace..45fd466 100644 --- a/cloud189-singer.py +++ b/cloud189-singer.py @@ -5,7 +5,7 @@ from threading import Thread import shlex import config - +import webbrowser def Cloud189SignGUI(): utils.load_setting() @@ -16,7 +16,7 @@ def Cloud189SignGUI(): [sg.T('密码,多个密码用#号分割:', font=config.default_font), sg.Input(default_text=config.password, size=(40, 1), key='password')], [sg.Button('签到', key='Sign')], [sg.Output(size=(90, 20), font=config.default_font)], - [sg.Button('退出', key='Exit', button_color=('white', 'firebrick3'))] + [sg.Button('退出', key='Exit', button_color=('white', 'firebrick3')), sg.Button('源码', key='home_page',button_color=('white', 'springgreen4'))] ] window = sg.Window('天翼云签到', layout, @@ -58,6 +58,8 @@ def Cloud189SignGUI(): thread_download.start() except Exception as e: print(e) + elif event == 'home_page': + webbrowser.open_new('https://github.com/xiaogouxo/cloud189-signer') window.close()