[Solved] python calculator [closed]


you can’t give the display as parameter to the pow function, it expects a number. and don’t forget to set the display.

   powF = frame(self, BOTTOM)
   button(powF, LEFT, 'pow', lambda w=display: w.set(pow(float(w.get()),2)))

solved python calculator [closed]