Skip to content

Commit

Permalink
源码按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
Falco Lee committed Aug 20, 2020
1 parent dfa32c1 commit aba5155
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cloud189-singer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from threading import Thread
import shlex
import config

import webbrowser

def Cloud189SignGUI():
utils.load_setting()
Expand All @@ -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,
Expand Down Expand Up @@ -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()


Expand Down

0 comments on commit aba5155

Please sign in to comment.