MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

calculator-gui.py:11–26  ·  view source on GitHub ↗
(self, parent)

Source from the content-addressed store, hash-verified

9
10class Inside:
11 def __init__(self, parent):
12 self.parent = parent
13 # ----- Main Frame -----
14 self.cal_frame = ttk.Frame(self.parent)
15 self.cal_frame.grid(row=0, column=0)
16 # ----------------------
17 # ----- Variable For Main Output -----
18 self.out_var = tk.StringVar()
19 # ----- Operator Chooser -----
20 self.opr = tk.StringVar()
21 # ----- Values Holder -----
22 self.value1 = tk.StringVar()
23 self.value2 = tk.StringVar()
24 # ------------------------------------
25 self.output_box() # <---------- Output Box Shower
26 self.cal_buttons() # <---------- Buttons On Calculator
27
28 def output_box(self):
29 show = ttk.Entry(

Callers

nothing calls this directly

Calls 2

output_boxMethod · 0.95
cal_buttonsMethod · 0.95

Tested by

no test coverage detected