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

Method __init__

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

Source from the content-addressed store, hash-verified

47
48class std_ca(tk.Frame):
49 def __init__(self, parent, controller):
50 tk.Frame.__init__(self, parent)
51 # Label of frame layout 1
52 label_lp = ttk.Label(
53 self,
54 text="You are Student or College Authority ?",
55 font=("Times New Roman", 36),
56 )
57 label_lp.place(x=400, y=100)
58 button_std = ttk.Button(
59 self, text="Student", command=lambda: controller.show_frame(LandPage)
60 )
61 button_std.place(x=550, y=200, height=60, width=150)
62
63 button_ca = ttk.Button(
64 self,
65 text="College Authority",
66 command=lambda: controller.show_frame(LandPage),
67 )
68 button_ca.place(x=800, y=200, height=60, width=150)
69
70
71# first window frame startpage

Callers

nothing calls this directly

Calls 2

show_frameMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected