diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-04-09 21:21:58 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-04-09 21:21:58 +0200 |
commit | 8a32646063bf0ff70b0560b192189e171e376717 (patch) | |
tree | cf70cf53367ea9ef04d46eadc934c0d2ba93ce4b /gui/main.py | |
parent | 6d5c0901baf7a96e36e5e075b52970e0df2ccf19 (diff) |
more application
Diffstat (limited to 'gui/main.py')
-rwxr-xr-x | gui/main.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gui/main.py b/gui/main.py index 335d7ed..ee84dfa 100755 --- a/gui/main.py +++ b/gui/main.py @@ -2,16 +2,15 @@ import sys import mariadb -from PyQt6.QtGui import * -from PyQt6.QtWidgets import * -from PyQt6 import * +from PySide6.QtGui import * +from PySide6.QtWidgets import * +from PySide6 import * from login_dialog import * from main_window import * if __name__ == '__main__': app = QApplication(sys.argv) - win = MainWindow() login_dialog = LoginDialog() db = None while True: @@ -21,7 +20,7 @@ if __name__ == '__main__': break except: print("Login failed, please try again") - win.set_cursor(db.cursor(buffered=True)) + win = MainWindow(db.cursor(buffered=True)) win.show() app.exec() |