diff --git a/HNS/Excercises/ShipCraft/main.py b/HNS/Excercises/ShipCraft/main.py index 6b98c6d..11e1db2 100644 --- a/HNS/Excercises/ShipCraft/main.py +++ b/HNS/Excercises/ShipCraft/main.py @@ -96,6 +96,12 @@ def colorize(field, buttons): buttons[i].configure(bg=bg) +def keypress_handler(e): + + if e.keysym == 1: + ship_size = 1 + + def left_button_click(field, row, col): if field_mode == 0: if check_possible(field, row, col): @@ -112,7 +118,7 @@ def right_button_click(d): ship_direction = 1 else: ship_direction = 0 - + def button_enter(field, row, col): if field_mode == 0: