From bc122b89fa573be4e769f1537d2eb41c42202ce2 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 4 Oct 2020 05:21:48 +0000 Subject: [PATCH] Remove unnecessary lambda expression --- Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py b/Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py index 1d30de11d..4fc9964a3 100644 --- a/Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py +++ b/Scripts/Miscellaneous/Tic_Tac_Toe_Game/main.py @@ -69,10 +69,10 @@ def winner(): # Game Board -restart = Button(tk, text = "RESTART", font = "Arial", bg = "white", fg = "black", height = 3, width = 8, command = lambda: playagain()) +restart = Button(tk, text = "RESTART", font = "Arial", bg = "white", fg = "black", height = 3, width = 8, command = playagain) restart.grid(row = 2, column = 0) -quit = Button(tk, text = "EXIT", font = "Arial", bg = "white", fg = "black", height = 3, width = 8, command = lambda: tk.destroy()) +quit = Button(tk, text = "EXIT", font = "Arial", bg = "white", fg = "black", height = 3, width = 8, command = tk.destroy) quit.grid(row = 2, column = 2) button1 = Button(tk, text = "", font = "Arial", bg = "Black", fg = "white", height = 4, width=8, command=lambda: button(button1))