def multiply (e): calc.setMathSign(2) if calc.num_num == 0: example.config(text=str(calc.get_num())+calc.get_sign()) else: example.config(text=example.cget("text")+str(calc.get_num()))
def divide (e): calc.setMathSign(3) if calc.num_num == 0: example.config(text=str(calc.get_num())+calc.get_sign()) else: example.config(text=example.cget("text")+str(calc.get_num()))
def minus(e): calc.set_math_sign(1) if calc.num_num == 0: example.config(text=str(calc.get_num()) + calc.get_sign()) else: example.config(text=example.cget("text") + str(calc.get_num()))