Skip to content

Commit

Permalink
feat: support dynamic window resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
itsHenry35 committed Jun 22, 2023
1 parent 7a42a70 commit 6a1b5f8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gui/download1.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def select_course():
returnlist['extensiveornot'] = 'True' if var.get() == 1 else 'False'

root = ttk.Window(title='乐读视频下载器-下载', themename="morph")
root.geometry('1280x720')
root.geometry("")
data = get_course(uid, token)
courselist, idlist, numlist, returnlist = {}, {}, [], {}
var = ttk.IntVar()
Expand Down
2 changes: 1 addition & 1 deletion gui/download2.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def update_download_status():
tkinterlist[filename]['speed'].configure(text='已完成')
time.sleep(0.1)
root = ttk.Window(title='乐读视频下载器-下载', themename="morph")
root.geometry('1280x720')
root.geometry("")
aria2process = subprocess.Popen(aria2_path + ' --enable-rpc --rpc-listen-port=6800 --max-connection-per-server=16 --file-allocation=none --max-concurrent-downloads=64', shell=True)
time.sleep(1)
jsonrpc = Aria2RPC()
Expand Down
2 changes: 1 addition & 1 deletion gui/login1.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def login1(username_default=""):
global exitbool
exitbool = True
root = ttk.Window(title = '乐读视频下载器-登陆', themename="morph")
root.geometry('1280x720')
root.geometry("")
title = ttk.Label(text = '登陆', font = ('等线 (Body Asian)', 20))
title.grid(row = 0, column = 0)
text1 = ttk.Label(text = '用户名(手机号或学员编号等):')
Expand Down
2 changes: 1 addition & 1 deletion gui/login1_sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def login1_sms(phonenum):
phonenum = str(phonenum)
thread_ = 0
root = ttk.Window(title = '乐读视频下载器-登陆', themename="morph")
root.geometry('1280x720')
root.geometry("")
title = ttk.Label(text = '登陆', font = ('等线 (Body Asian)', 20))
title.grid(row = 0, column = 0)
text1 = ttk.Label(text = '手机号:')
Expand Down
2 changes: 1 addition & 1 deletion gui/login2.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def next_step():
}

root = ttk.Window(title='乐读视频下载器-登陆', themename="morph")
root.geometry('1280x720')
root.geometry("")
login_result = pwd_verify(username, password)
if login_result['success'] == 'True':
text1 = ttk.Label(text=login_result['msg'])
Expand Down
2 changes: 1 addition & 1 deletion gui/login2_sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def next_step():
}

root = ttk.Window(title='乐读视频下载器-登陆', themename="morph")
root.geometry('1280x720')
root.geometry("")
login_result = sms_verify(phone_num, sms_code, zone_code)
if login_result['success'] == 'True':
text1 = ttk.Label(text=login_result['msg'])
Expand Down
2 changes: 1 addition & 1 deletion gui/login3.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def submit():

count = 0
root = ttk.Window(title='乐读视频下载器-登陆', themename="morph")
root.geometry('1280x720')
root.geometry("")
text0 = ttk.Label(text='请选择学员')
text0.grid(row=0)
account_list = get_account_list(token, uid_now)
Expand Down

0 comments on commit 6a1b5f8

Please sign in to comment.