-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol.py
More file actions
65 lines (53 loc) · 2.14 KB
/
control.py
File metadata and controls
65 lines (53 loc) · 2.14 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
53
54
55
56
57
58
59
60
61
62
63
64
65
from tkinter import *
from tkinter import messagebox
import mysql.connector
from adminAdd import *
from userAdd import *
class control(admin,user):
def adminControl(self):
for widgets in self.Frame1.winfo_children():
widgets.destroy()
greet = Label(self.Frame1)
greet.place(relx=0.314, rely=0.071, height=31, width=190)
greet.configure(background="#d9d9d9")
greet.configure(disabledforeground="#a3a3a3")
greet.configure(font="-family {Poppins Medium} -size 24")
greet.configure(foreground="#000000")
greet.configure(text='''Controls''')
L = Label(self.Frame1)
L.place(relx=0.130, rely=0.225, height=41, width=110)
L.configure(background="#d9d9d9")
L.configure(disabledforeground="#a3a3a3")
L.configure(font="-family {Segoe UI} -size 10")
L.configure(foreground="#000000")
L.configure(text='''Add admin user''')
submitbtn = Button(self.Frame1)
submitbtn.place(relx=0.42, rely=0.250, height=25, width=76)
submitbtn.configure(takefocus="")
submitbtn.configure(text='''Add admin''')
submitbtn.configure(command=self.addAdmin)
L = Label(self.Frame1)
L.place(relx=0.130, rely=0.350, height=41, width=110)
L.configure(background="#d9d9d9")
L.configure(disabledforeground="#a3a3a3")
L.configure(font="-family {Segoe UI} -size 10")
L.configure(foreground="#000000")
L.configure(text='''Add user''')
submitbtn = Button(self.Frame1)
submitbtn.place(relx=0.42, rely=0.375, height=25, width=76)
submitbtn.configure(takefocus="")
submitbtn.configure(text='''Add''')
submitbtn.configure(command=self.addUser)
L = Label(self.Frame1)
L.place(relx=0.130, rely=0.475, height=41, width=110)
L.configure(background="#d9d9d9")
L.configure(disabledforeground="#a3a3a3")
L.configure(font="-family {Segoe UI} -size 10")
L.configure(foreground="#000000")
L.configure(text='''Change Password''')
submitbtn = Button(self.Frame1)
submitbtn.place(relx=0.42, rely=0.500, height=25, width=76)
submitbtn.configure(takefocus="")
submitbtn.configure(text='''Change''')
submitbtn.configure(command=self.changePass)
pass