From 308fddd15cb4cfb9c83d15e09e7c1458c10d2df8 Mon Sep 17 00:00:00 2001 From: Aayush Jain Date: Sun, 12 Aug 2018 18:56:29 +0530 Subject: [PATCH] pi button can be used for operations other than multiplication --- pyCalc/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyCalc/gui.py b/pyCalc/gui.py index 00d6cea..fb5ee98 100644 --- a/pyCalc/gui.py +++ b/pyCalc/gui.py @@ -109,7 +109,7 @@ def _init_ui(self): # adding new operations pi = tk.Button(self, text="pi", command=lambda: self.get_operation( - "*3.14"), font=self.FONT_LARGE) + "3.14"), font=self.FONT_LARGE) pi.grid(row=2, column=4) modulo = tk.Button( self, text="%", command=lambda: self.get_operation("%"), font=self.FONT_LARGE)