Exemple #1
0
 def __init__(self, frame: Frame, action: Action) -> None:
     self._button: Button = CalculatorButton(
         row=2,
         column=1,
         text='5',
         frame=frame,
         command=lambda: action.click(number='5'))
Exemple #2
0
 def __init__(self, frame: Frame, action: Action) -> None:
     self._button: Button = CalculatorButton(
         row=5,
         column=3,
         text='%',
         frame=frame,
         command=lambda: action.click(operator='%'))