Commit 46602227 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Results: Fix play button image file path.

Showing with 4 additions and 5 deletions
+4 -5
...@@ -74,7 +74,7 @@ class ResultsWindow(PamhyrWindow): ...@@ -74,7 +74,7 @@ class ResultsWindow(PamhyrWindow):
return os.path.abspath( return os.path.abspath(
os.path.join( os.path.join(
os.path.dirname(__file__), os.path.dirname(__file__),
"..", "..", filename "..", "ui", "ressources", filename
) )
) )
...@@ -133,15 +133,14 @@ class ResultsWindow(PamhyrWindow): ...@@ -133,15 +133,14 @@ class ResultsWindow(PamhyrWindow):
self._slider_time.setMaximum(len(self._timestamps) - 1) self._slider_time.setMaximum(len(self._timestamps) - 1)
self._slider_time.setValue(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 = QIcon()
self._icon_start.addPixmap( 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 = QIcon()
self._icon_pause.addPixmap( 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 = self.find(QPushButton, f"playButton")
self._button_play.setIcon(self._icon_start) self._button_play.setIcon(self._icon_start)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment