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

Method press_plus

calculator-gui.py:127–135  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 self.out_var.set("")
126
127 def press_plus(self):
128 self.value1 = self.out_var.get()
129 if self.value1 == "":
130 messagebox.showwarning(
131 "Operator Before Number", "Please Enter Number Before Operator"
132 )
133 else:
134 self.out_var.set("")
135 self.opr = "+"
136
137 def press_min(self):
138 self.value1 = self.out_var.get()

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected