Skip to content
This repository was archived by the owner on Sep 13, 2025. It is now read-only.

Commit cafbd51

Browse files
committed
Changing app context
1 parent a4ffeb6 commit cafbd51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/python/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
from fbs_runtime.application_context.PyQt5 import ApplicationContext
77
import pathlib, os, shutil, sys
88

9-
Form, _ = uic.loadUiType("app.ui")
9+
appctxt = ApplicationContext()
10+
Form, _ = uic.loadUiType(appctxt.get_resource("app.ui"))
1011

1112
class TransfonterFontManager(QtWidgets.QMainWindow, Form):
1213

@@ -61,7 +62,6 @@ def init_UI(self):
6162
self.run_button.clicked.connect(self.run)
6263

6364
if __name__ == '__main__':
64-
appctxt = ApplicationContext()
6565
window = TransfonterFontManager()
6666
window.show()
6767
exit_code = appctxt.app.exec_()

0 commit comments

Comments
 (0)