We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d009b1 commit b252032Copy full SHA for b252032
main.py
@@ -1,14 +1,14 @@
1
from PySide6.QtCore import QObject, Slot
2
from PySide6.QtWidgets import QApplication
3
-from RinUI import RinUIWindow, BackdropEffect, Theme
+from pathlib import Path
4
+from RinUI import RinUIWindow, Theme
5
import sys
-# from PySide6.QtCore import
6
7
8
class IconLib(RinUIWindow):
9
def __init__(self):
10
- super().__init__("assets/qml/main.qml")
11
- self.setIcon("assets/images/logo.png")
+ super().__init__(Path(__file__).resolve().parent / "assets" / "qml" / "main.qml")
+ self.setIcon((Path(__file__).parent / "assets" / "images" / "logo.png").as_posix())
12
# register backend
13
self.backend = IconLibBackend()
14
self.engine.rootContext().setContextProperty("Backend", self.backend)
0 commit comments