diff --git a/Bilder/motiv1.png b/Bilder/motiv1.png new file mode 100644 index 0000000..0d66196 Binary files /dev/null and b/Bilder/motiv1.png differ diff --git a/Bilder/motiv1.xcf b/Bilder/motiv1.xcf deleted file mode 100644 index ee0739d..0000000 Binary files a/Bilder/motiv1.xcf and /dev/null differ diff --git a/Bilder/motiv2.jpg b/Bilder/motiv2.jpg deleted file mode 100644 index bd08dec..0000000 Binary files a/Bilder/motiv2.jpg and /dev/null differ diff --git a/Bilder/motiv2.png b/Bilder/motiv2.png new file mode 100644 index 0000000..946602d Binary files /dev/null and b/Bilder/motiv2.png differ diff --git a/Bilder/motiv3.jpg b/Bilder/motiv3.jpg deleted file mode 100644 index 1bbe798..0000000 Binary files a/Bilder/motiv3.jpg and /dev/null differ diff --git a/Bilder/motiv3.png b/Bilder/motiv3.png new file mode 100644 index 0000000..f678161 Binary files /dev/null and b/Bilder/motiv3.png differ diff --git a/Bilder/motiv4.jpg b/Bilder/motiv4.jpg deleted file mode 100644 index 94c66db..0000000 Binary files a/Bilder/motiv4.jpg and /dev/null differ diff --git a/Bilder/motiv4.png b/Bilder/motiv4.png new file mode 100644 index 0000000..eb6f129 Binary files /dev/null and b/Bilder/motiv4.png differ diff --git a/Bilder/motiv5.jpg b/Bilder/motiv5.jpg deleted file mode 100644 index f79f58f..0000000 Binary files a/Bilder/motiv5.jpg and /dev/null differ diff --git a/Bilder/motiv5.png b/Bilder/motiv5.png new file mode 100644 index 0000000..b483b9d Binary files /dev/null and b/Bilder/motiv5.png differ diff --git a/Bilder/motiv6.jpg b/Bilder/motiv6.jpg deleted file mode 100644 index 8f220fa..0000000 Binary files a/Bilder/motiv6.jpg and /dev/null differ diff --git a/Bilder/motiv6.png b/Bilder/motiv6.png new file mode 100644 index 0000000..b0715c6 Binary files /dev/null and b/Bilder/motiv6.png differ diff --git a/Bilder/motiv7.jpg b/Bilder/motiv7.jpg deleted file mode 100644 index e32ac60..0000000 Binary files a/Bilder/motiv7.jpg and /dev/null differ diff --git a/Bilder/motiv7.png b/Bilder/motiv7.png new file mode 100644 index 0000000..dc963c2 Binary files /dev/null and b/Bilder/motiv7.png differ diff --git a/Bilder/motiv8.jpg b/Bilder/motiv8.jpg deleted file mode 100644 index 5c75246..0000000 Binary files a/Bilder/motiv8.jpg and /dev/null differ diff --git a/Bilder/motiv8.png b/Bilder/motiv8.png new file mode 100644 index 0000000..5abbdd1 Binary files /dev/null and b/Bilder/motiv8.png differ diff --git a/meinspiel.py b/meinspiel.py index a47e6a8..2899ae4 100644 --- a/meinspiel.py +++ b/meinspiel.py @@ -2,7 +2,7 @@ import copy import pygame class MeinSpiel: - bilder = ["Bilder/Schach.jpg","Bilder/stern.jpg","Bilder/motiv1.jpg","Bilder/motiv2.jpg","Bilder/motiv3.jpg","Bilder/motiv4.jpg","Bilder/motiv5.jpg","Bilder/motiv6.jpg","Bilder/motiv7.jpg","Bilder/motiv8.jpg"] + bilder = ["Bilder/Schach.jpg","Bilder/stern.jpg","Bilder/motiv1.png","Bilder/motiv2.png","Bilder/motiv3.png","Bilder/motiv4.png","Bilder/motiv5.png","Bilder/motiv6.png","Bilder/motiv7.png","Bilder/motiv8.png"] spielfeld = [] def __init__(self, felderX, felderY): @@ -28,4 +28,33 @@ class MeinSpiel: for i in range(0, 11, 5): print(i) - \ No newline at end of file + + + + + + from pynput import mouse + +# Callback-Funktion bei Mausklick +def on_click(x, y, button, pressed): + if pressed: + print(f"Mausklick gedrückt bei Position ({x}, {y}) mit Taste {button}") + else: + print(f"Mausklick losgelassen bei Position ({x}, {y}) mit Taste {button}") + +# Callback-Funktion bei Mausbewegung +def on_move(x, y): + print(f"Maus bewegt zu Position ({x}, {y})") + +# Callback-Funktion beim Mausrad-Scrollen +def on_scroll(x, y, dx, dy): + print(f"Mausrad bewegt bei Position ({x}, {y}) – Delta: ({dx}, {dy})") + +# Listener starten +with mouse.Listener( + on_click=on_click, + on_move=on_move, + on_scroll=on_scroll +) as listener: + print("Maus-Event-Listener gestartet. Beenden mit STRG+C.") + listener.join() \ No newline at end of file