From e8ab224f7df7de72d64cb9b606ccc67a6da6c499 Mon Sep 17 00:00:00 2001 From: Hauke Platte Date: Thu, 14 Mar 2024 08:30:36 +0100 Subject: [PATCH] fix(UI-UX): fix Main Menu Button on end screen [TTTK-76] --- UI/endscreen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/endscreen.py b/UI/endscreen.py index 18773d0..b43f82c 100644 --- a/UI/endscreen.py +++ b/UI/endscreen.py @@ -13,7 +13,7 @@ def _create_widgets(self, win:bool): message = "You won the game!" if win else "You lost the game!" self.lblWinner = tk.Label(self, width=20, height=5, bg="white", text=message) #self.btnPlayAgain = tk.Button(self, width=20, height=5, text="Play Again", command=lambda: self.master.show(Field)) - self.btnMainMenu = tk.Button(self, text="Main Menu", width=20, height=5, command=lambda: self.master.show_menu) + self.btnMainMenu = tk.Button(self, text="Main Menu", width=20, height=5, command=lambda: self.master.show_menu()) def _display_widgets(self): self.lblWinner.pack()