Merge remote-tracking branch 'origin/main'

This commit is contained in:
Artur Savitskiy 2024-01-31 19:32:41 +01:00
commit 74761cf734
1 changed files with 1 additions and 1 deletions

View File

@ -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('<Button-1>', lambda e, x=r, y=c: left_button_click(field, x, y))
btn.bind('<Button-3>', lambda e, x=r, y=c: right_button_click(field, x, y))
btn.bind('<KeyPress>', lambda e, x=r, y=c: right_button_click(field, x, y))
btn.bind('<Enter>', lambda e, x=r, y=c: button_enter(field, x, y))
buttons.append(btn)