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

Commit a15a91f

Browse files
committed
Updating project to work on Python 3.12
1 parent 8b13d41 commit a15a91f

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

requirements.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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

seedqreader.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,10 @@ def on_stop(self):
422422
class MainWindow(QMainWindow):
423423
stop_display = Signal()
424424

425-
def __init__(self):
425+
def __init__(self, loader):
426426
super().__init__()
427427

428428
# Set up the main window
429-
loader = QUiLoader()
430429
path = os.fspath(Path(__file__).resolve().parent / "form.ui")
431430
ui_file = QFile(path)
432431
ui_file.open(QFile.ReadOnly)
@@ -700,6 +699,8 @@ def on_btn_save(self):
700699

701700

702701
if __name__ == '__main__':
702+
# the QUiLoader object needs to be initialized BEFORE the QApplication - https://stackoverflow.com/a/78041695
703+
loader = QUiLoader()
703704
app = QApplication(sys.argv)
704705

705706
app.setStyle("Fusion")
@@ -721,7 +722,7 @@ def on_btn_save(self):
721722
palette.setColor(QPalette.HighlightedText, Qt.black)
722723
app.setPalette(palette)
723724

724-
main_win = MainWindow()
725+
main_win = MainWindow(loader)
725726
main_win.show()
726727
app.exec()
727728

0 commit comments

Comments
 (0)