From 03a23b77403ac5be984cdc00f7c82ccd0184b33b Mon Sep 17 00:00:00 2001 From: danii Date: Mon, 18 Dec 2023 19:34:29 +0100 Subject: [PATCH] Homework --- HNC/Exercises/Ship_Battle/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HNC/Exercises/Ship_Battle/main.py b/HNC/Exercises/Ship_Battle/main.py index f42c773..8437ab4 100644 --- a/HNC/Exercises/Ship_Battle/main.py +++ b/HNC/Exercises/Ship_Battle/main.py @@ -81,7 +81,7 @@ def draw_field(window, field): btn = Button(window, text='', width=5, height=2) btn.grid(column=c, row=r) btn.bind('', lambda e, x=r, y=c: left_button_click(field, x, y)) - btn.bind('', lambda e, x=r, y=c: right_button_click(field, x, y)) + btn.bind('', lambda e, x=r, y=c: right_button_click(field, x, y)) btn.bind('', lambda e, x=r, y=c: button_enter(field, x, y)) buttons.append(btn)