Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
Create RaffleGUI.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shoyu3 authored May 2, 2021
1 parent a84f98c commit 99b86a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RaffleGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,8 +1163,8 @@ def clicked4():
img.save('qrcode.png')
login2window = tk.Toplevel(window)
login2window.title('使用B站客户端扫描登录')
width = 300
heigh = 300
width = 295
heigh = 280
screenwidth = login2window.winfo_screenwidth()
screenheight = login2window.winfo_screenheight()-50
login2window.geometry('%dx%d+%d+%d'%(width, heigh, (screenwidth-width)/2, (screenheight-heigh)/2))
Expand All @@ -1180,7 +1180,8 @@ def clicked4():
pass
photo = tk.PhotoImage(file='qrcode.png')
w = tk.Label(login2window, image=photo)
w.pack()
w.place(x=-1, y=-15)
#w.pack()
os.unlink('qrcode.png')
#_thread.start_new_thread(chklog,(oauthkey,login2window))
thread = threading.Thread(target=chklog,args=(oauthkey,login2window))
Expand Down

0 comments on commit 99b86a6

Please sign in to comment.