This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree 2 files changed +16
-15
lines changed 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 1
- embit == 0.7.0
2
- numpy == 1.24.3
3
- opencv-python == 4.7.0.72
4
- Pillow == 9.5.0
5
- pypng == 0.20220715.0
6
- PyYAML == 6.0
7
- pyzbar == 0.1.9
8
- qrcode == 7.4.2
9
- typing_extensions == 4.6.2
10
- PySide6 == 6.5 .1
11
- shiboken6 == 6.5 .1
12
- urtypes @ git+https://github.com/selfcustody/urtypes.git@7fb280eab3b3563dfc57d2733b0bf5cbc0a96a6a
1
+ embit == 0.7.0
2
+ numpy == 1.26.4
3
+ opencv-python == 4.7.0.72
4
+ Pillow == 9.5.0
5
+ pypng == 0.20220715.0
6
+ PyYAML == 6.0.1
7
+ pyzbar == 0.1.9
8
+ qrcode == 7.4.2
9
+ typing_extensions == 4.11.0
10
+ PySide6 == 6.6.3 .1
11
+ shiboken6 == 6.6.3 .1
12
+ urtypes @ git+https://github.com/selfcustody/urtypes.git@7fb280eab3b3563dfc57d2733b0bf5cbc0a96a6a
Original file line number Diff line number Diff line change @@ -422,11 +422,10 @@ def on_stop(self):
422
422
class MainWindow (QMainWindow ):
423
423
stop_display = Signal ()
424
424
425
- def __init__ (self ):
425
+ def __init__ (self , loader ):
426
426
super ().__init__ ()
427
427
428
428
# Set up the main window
429
- loader = QUiLoader ()
430
429
path = os .fspath (Path (__file__ ).resolve ().parent / "form.ui" )
431
430
ui_file = QFile (path )
432
431
ui_file .open (QFile .ReadOnly )
@@ -700,6 +699,8 @@ def on_btn_save(self):
700
699
701
700
702
701
if __name__ == '__main__' :
702
+ # the QUiLoader object needs to be initialized BEFORE the QApplication - https://stackoverflow.com/a/78041695
703
+ loader = QUiLoader ()
703
704
app = QApplication (sys .argv )
704
705
705
706
app .setStyle ("Fusion" )
@@ -721,7 +722,7 @@ def on_btn_save(self):
721
722
palette .setColor (QPalette .HighlightedText , Qt .black )
722
723
app .setPalette (palette )
723
724
724
- main_win = MainWindow ()
725
+ main_win = MainWindow (loader )
725
726
main_win .show ()
726
727
app .exec ()
727
728
You can’t perform that action at this time.
0 commit comments