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

Method __init__

projects/Tkinter/1.py:189–223  ·  view source on GitHub ↗
(self, parent, controller)

Source from the content-addressed store, hash-verified

187# third window frame page2
188class lgin(tk.Frame):
189 def __init__(self, parent, controller):
190 tk.Frame.__init__(self, parent)
191 # ttk.configure(bg='blue')
192 label = ttk.Label(self, text="Login ", font=LARGEFONT)
193 label.place(x=650, y=100)
194 # name entry label
195 label_name = ttk.Label(
196 self, text="Enter your Name:", font=("Times New Roman", 14)
197 )
198 label_name.place(x=500, y=200)
199 # enter name
200 entry_name = ttk.Entry(self, width=25, font=("Times New Roman", 12))
201 entry_name.place(x=700, y=200)
202 str_name = entry_name.get()
203 # label_password
204 label_pass = ttk.Label(
205 self, text="Enter your Password:", font=("Times New Roman", 14)
206 )
207 label_pass.place(x=500, y=250)
208 # enter password
209 entry_pass = ttk.Entry(self, width=25, font=("Times New Roman", 12), show="*")
210 entry_pass.place(x=700, y=250)
211 str_pass = entry_pass.get()
212 # check box
213 # rob_check=ttk.IntVar()
214 chk = ttk.Checkbutton(self, text="I am not a robot")
215 chk.place(x=600, y=300, height=50, width=250)
216 # back button
217 button2 = ttk.Button(
218 self, text="Back", command=lambda: controller.show_frame(LandPage)
219 )
220 button2.place(x=600, y=400, height=50, width=100)
221 # submit button
222 button3 = ttk.Button(self, text="Submit")
223 button3.place(x=750, y=400, height=50, width=100)
224
225
226# Driver Code

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

show_frameMethod · 0.80

Tested by

no test coverage detected