forked from faisu07/hydroinfinity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProgressBar2.py
41 lines (31 loc) · 941 Bytes
/
ProgressBar2.py
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
import tkinter
from tkinter import *
from tkinter.ttk import *
root = tkinter.Tk()
root.geometry("600x400")
AccessGranted = Label(root, text = "ACCESS GRANTED !").place(x = 255,y = 50)
HelloUser = Label(root, text = "Hello, User").place(x = 270, y = 80)
Volume = Label(root, text = "1.502 L").place(x = 285, y = 110)
ConsumedAmount = Label(root, text = "You have consumed 3.5 L today !").place(x = 215, y = 170)
HelloUser = Label(root, text = "Remaining").place(x = 30, y = 250)
Percentage = Label(root, text = "20%").place(x = 525, y = 250)
pgbar = Progressbar(
root,
length = 400,
orient = HORIZONTAL,
maximum = 100,
value = 20,
mode='determinate',
)
pgbar.pack()
btn = tkinter.Button(
root,
text = "Finish",
command = exit,
)
pgbar.place(x = 110, y = 250)
btn.pack()
btn.place(x = 280, y = 280)
root.mainloop()
def exit():
root.destroy()