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

Method __init__

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

Source from the content-addressed store, hash-verified

73
74class LandPage(tk.Frame):
75 def __init__(self, parent, controller):
76 tk.Frame.__init__(self, parent)
77 # label of frame Layout 2
78 label = ttk.Label(self, text="Welcome..!!", font=LARGEFONT)
79 label1 = ttk.Label(self, text="New User? Create New Account", font=24)
80 label.place(x=620, y=10)
81 label1.place(x=620, y=100)
82
83 button1 = ttk.Button(
84 self,
85 text="Create New Account",
86 command=lambda: controller.show_frame(accnt),
87 )
88 button1.place(x=550, y=200, height=60, width=150)
89
90 button2 = ttk.Button(
91 self, text="Login", command=lambda: controller.show_frame(lgin)
92 )
93 button2.place(x=800, y=200, height=60, width=150)
94
95 button_back = ttk.Button(
96 self, text="Back", command=lambda: controller.show_frame(std_ca)
97 )
98 button_back.place(x=680, y=300, height=60, width=150)
99
100
101# second window frame page1

Callers

nothing calls this directly

Calls 2

show_frameMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected