mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Results: Fix play button image file path.
This commit is contained in:
1 parent
99fe5e8f74
commit
46602227af
1 file changed
+4
-5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user