From 46602227af48c69c7f0dbdad9d3037c93a350364 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Tue, 16 Jan 2024 14:10:56 +0100 Subject: [PATCH] Results: Fix play button image file path. --- src/View/Results/Window.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/View/Results/Window.py b/src/View/Results/Window.py index bbb62e85..4dfdb816 100644 --- a/src/View/Results/Window.py +++ b/src/View/Results/Window.py @@ -74,7 +74,7 @@ class ResultsWindow(PamhyrWindow): return os.path.abspath( os.path.join( os.path.dirname(__file__), - "..", "..", filename + "..", "ui", "ressources", filename ) ) @@ -133,15 +133,14 @@ class ResultsWindow(PamhyrWindow): self._slider_time.setMaximum(len(self._timestamps) - 1) self._slider_time.setValue(len(self._timestamps) - 1) - file_path = os.path.abspath(os.path.dirname(__file__)) - self._icon_start = QIcon() self._icon_start.addPixmap( - QPixmap(f'{file_path}/../ui/ressources/media-playback-start.png') + QPixmap(self._path_file("media-playback-start.png")) ) + self._icon_pause = QIcon() self._icon_pause.addPixmap( - QPixmap(f'{file_path}/../ui/ressources/media-playback-pause.png') + QPixmap(self._path_file("media-playback-pause.png")) ) self._button_play = self.find(QPushButton, f"playButton") self._button_play.setIcon(self._icon_start) -- GitLab