-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypage.py
More file actions
52 lines (37 loc) · 1.23 KB
/
Copy pathentrypage.py
File metadata and controls
52 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import sys
from tkinter import *
from tkinter.ttk import Progressbar
from PIL import ImageTk
from tkinter import ttk
entryPage = Tk()
def login_page():
entryPage.destroy()
import signin1
entryPage.geometry("{0}x{1}+0+0".format(entryPage.winfo_screenwidth(), entryPage.winfo_screenheight()))
entryPage.overrideredirect(1)
background=ImageTk.PhotoImage(file='Student Edge (1290 × 750 px).png')
bgLabel= Label(entryPage, image=background)
bgLabel.grid()
entryPage.wm_attributes('-topmost',True)
entryPage.wm_attributes('-alpha',0.8)
exitbtn=Button(entryPage,text='X',command=lambda:exit_window(),font=('yu gothic ui',17,'bold'),fg='yellow',bd=0)
exitbtn.place(x=1260,y=0)
progressLabel=Label(entryPage,text='Please Wait...',font=('yu gothic ui',13,'bold'),bg='#DCDCDC')
progressLabel.place(x=800,y=500)
progress=Progressbar(entryPage,orient=HORIZONTAL,length=500,mode='determinate')
progress.place(x=600,y=540)
def exit_window():
sys.exit(entryPage.destroy())
i=0
def load():
global i
if(i <=10):
txt='Please Wait... '+ (str(10*i)+'%')
progressLabel.config(text=txt)
progressLabel.after(500,load)
progress['value']=10*i
i += 1
else:
login_page()
load()
entryPage.mainloop()