Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
74761cf734
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue