mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Fix play button image file path.
parent
99fe5e8f74
commit
46602227af
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue