MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / check

Function check

projects/inventory management/main.py:85–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85def check():
86 if e1.get() == "Admin" and e2.get() == "1234":
87 win = tkinter.Tk()
88 win.title("Inventory")
89 win.configure(bg="SteelBlue1")
90 win.geometry("500x400")
91 login.destroy()
92 l = tkinter.Label(
93 win,
94 text="Welcome to Super Market",
95 font=("Arial", 18, "bold"),
96 bg="SteelBlue1",
97 fg="Black",
98 )
99 l.pack(side="top")
100 search = tkinter.Button(
101 win, text="Search", font=("Arial", 10, "bold"), command=Search, bg="azure"
102 )
103 add = tkinter.Button(
104 win, text=" Add ", font=("Arial", 10, "bold"), command=ADD, bg="azure"
105 )
106 update = tkinter.Button(
107 win, text="Update", font=("Arial", 10, "bold"), command=Update, bg="azure"
108 )
109 display = tkinter.Button(
110 win, text="Display", font=("Arial", 10, "bold"), command=Display, bg="azure"
111 )
112 delete = tkinter.Button(
113 win, text=" Delete ", font=("Arial", 10, "bold"), command=Delete, bg="azure"
114 )
115 e = tkinter.Button(
116 win,
117 text=" Exit ",
118 font=("Arial", 10, "bold"),
119 command=win.destroy,
120 bg="azure",
121 )
122 add.place(x=90, y=100)
123 display.place(x=90, y=200)
124 search.place(x=300, y=100)
125 update.place(x=195, y=150)
126 delete.place(x=300, y=200)
127 e.place(x=200, y=250)
128 win.mainloop()
129
130 else:
131 l1 = tkinter.Label(
132 login,
133 text="Login Unsuccessful!!",
134 font=("Arial", 10, "bold"),
135 fg="black",
136 bg="light salmon",
137 )
138 l1.place(x=110, y=170)
139
140
141login = tkinter.Tk()

Callers

nothing calls this directly

Calls 1

titleMethod · 0.80

Tested by

no test coverage detected