diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..146ab09
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..a971a2c
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..cbb9f96
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/slideshow.iml b/.idea/slideshow.iml
new file mode 100644
index 0000000..d0876a7
--- /dev/null
+++ b/.idea/slideshow.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Logos/lien logos.txt b/Logos/lien logos.txt
new file mode 100644
index 0000000..0a5b891
--- /dev/null
+++ b/Logos/lien logos.txt
@@ -0,0 +1 @@
+https://www.flaticon.com/packs/music-player
\ No newline at end of file
diff --git a/Logos/next.png b/Logos/next.png
new file mode 100644
index 0000000..1709568
Binary files /dev/null and b/Logos/next.png differ
diff --git a/Logos/pause.png b/Logos/pause.png
new file mode 100644
index 0000000..855f827
Binary files /dev/null and b/Logos/pause.png differ
diff --git a/Logos/play.png b/Logos/play.png
new file mode 100644
index 0000000..8244b2d
Binary files /dev/null and b/Logos/play.png differ
diff --git a/Logos/previous.png b/Logos/previous.png
new file mode 100644
index 0000000..62f0b90
Binary files /dev/null and b/Logos/previous.png differ
diff --git a/Logos/shuffle.png b/Logos/shuffle.png
new file mode 100644
index 0000000..0f491e1
Binary files /dev/null and b/Logos/shuffle.png differ
diff --git a/main.py b/main.py
index 5c91937..c447700 100644
--- a/main.py
+++ b/main.py
@@ -6,9 +6,9 @@ import threading
# import exifread
# Chemin du dossier contenant les photos
-PHOTO_FOLDER = "C:/Users/archa/OneDrive/Pictures/test"
+PHOTO_FOLDER = "./photos"
# Temps affichage photos (1000 = 1 seconde)
-TIMER = 5000
+TIMER = 8000
# Liste des fichiers dans le dossier
@@ -56,12 +56,25 @@ def load_photos():
threading.Thread(target=load_photos, daemon=True).start()
-# Création du logo de pause
-pause_logo = pygame.image.load("pause_logo.png")
+# Logos Play, Pause, Next, Previous
+LOGO_SIZE = (200, 200)
+
+pause_logo = pygame.image.load("./Logos/pause.png")
+pause_logo = pygame.transform.smoothscale(pause_logo, LOGO_SIZE)
pause_logo_rect = pause_logo.get_rect(center=screen.get_rect().center)
-play_logo = pygame.image.load("play_logo.png")
+
+play_logo = pygame.image.load("./Logos/play.png")
+play_logo = pygame.transform.smoothscale(play_logo, LOGO_SIZE)
play_logo_rect = play_logo.get_rect(center=screen.get_rect().center)
+next_logo = pygame.image.load("./Logos/next.png")
+next_logo = pygame.transform.smoothscale(next_logo, LOGO_SIZE)
+next_logo_rect = next_logo.get_rect(midright=(screen.get_rect().right - 50, screen.get_rect().centery))
+
+previous_logo = pygame.image.load("./Logos/previous.png")
+previous_logo = pygame.transform.smoothscale(previous_logo, LOGO_SIZE)
+previous_logo_rect = previous_logo.get_rect(midleft=(screen.get_rect().left + 50, screen.get_rect().centery))
+
while running:
# Gestion des événements
for event in pygame.event.get():
@@ -72,13 +85,25 @@ while running:
if not auto_change:
screen.blit(pause_logo, pause_logo_rect)
pygame.display.flip()
+ pygame.time.delay(1000) # Pause de 1 secondes avant de masquer le logo
+ screen.fill((0, 0, 0))
else:
screen.blit(play_logo, play_logo_rect)
pygame.display.flip()
+ pygame.time.delay(1000) # Pause de 1 secondes avant de masquer le logo
+ screen.fill((0, 0, 0))
elif event.type == KEYDOWN and event.key == K_LEFT:
photo_index = (photo_index - 1) % len(photo_files)
+ screen.blit(previous_logo, previous_logo_rect)
+ pygame.display.flip()
+ pygame.time.delay(1000) # Pause de 1 secondes avant de masquer le logo
+ screen.fill((0, 0, 0))
elif event.type == KEYDOWN and event.key == K_RIGHT:
photo_index = (photo_index + 1) % len(photo_files)
+ screen.blit(next_logo, next_logo_rect)
+ pygame.display.flip()
+ pygame.time.delay(1000) # Pause de 1 secondes avant de masquer le logo
+ screen.fill((0, 0, 0))
elif event.type == KEYDOWN and event.key == K_f:
fullscreen = not fullscreen
if fullscreen:
diff --git a/photos/christopher-burns-C1J_eSGNPt0-unsplash.jpg b/photos/christopher-burns-C1J_eSGNPt0-unsplash.jpg
new file mode 100755
index 0000000..ca98e27
Binary files /dev/null and b/photos/christopher-burns-C1J_eSGNPt0-unsplash.jpg differ
diff --git a/photos/luca-bravo-zAjdgNXsMeg.jpg b/photos/luca-bravo-zAjdgNXsMeg.jpg
new file mode 100644
index 0000000..15d5a09
Binary files /dev/null and b/photos/luca-bravo-zAjdgNXsMeg.jpg differ
diff --git a/photos/paul-pastourmatzis-Ph-zKEr_Wx4.jpg b/photos/paul-pastourmatzis-Ph-zKEr_Wx4.jpg
new file mode 100644
index 0000000..8f77c78
Binary files /dev/null and b/photos/paul-pastourmatzis-Ph-zKEr_Wx4.jpg differ
diff --git a/photos/pawel-czerwinski-E2tGOeS4Ijc.jpg b/photos/pawel-czerwinski-E2tGOeS4Ijc.jpg
new file mode 100644
index 0000000..daced81
Binary files /dev/null and b/photos/pawel-czerwinski-E2tGOeS4Ijc.jpg differ