diff --git a/Teil_60_Qt_1.py b/Teil_60_Qt_1.py
index a734969..68097fc 100644
--- a/Teil_60_Qt_1.py
+++ b/Teil_60_Qt_1.py
@@ -1,11 +1,12 @@
-from PySide6.QtWidgets import QApplication, QMainWindow
-from PySide6 import QtSql
-from pyqt5_gui import Ui_MainWindow
+import sys
+from PyQt5.QtWidgets import QApplication, QMainWindow
+from PyQt5 import QtSql
+from PyQt5.uic import loadUi
-class Frm_main(QMainWindow, Ui_MainWindow):
+class Frm_main(QMainWindow):
def __init__(self):
- super().__init__()
- self.setupUi(self)
+ super(Frm_main, self).__init__()
+ loadUi("pyqt5.ui", self)
mod_geraete = QtSql.QSqlRelationalTableModel()
mod_geraete.setTable("Geraete")
mod_geraete.setRelation(2, QtSql.QSqlRelation("Kunden", "Kunden_Index", "Kunden_Name"))
@@ -17,7 +18,7 @@ db = QtSql.QSqlDatabase.addDatabase("QSQLITE")
db.setDatabaseName("meine.db")
-app = QApplication()
+app = QApplication(sys.argv)
frm_main = Frm_main()
frm_main.lbl_eins.setText("Ein Label")
#self.lbl_eins.setText(QCoreApplication.translate("MainWindow", u"Das Label", None))
diff --git a/pyqt5.ui b/pyqt5.ui
index a06f424..7636d6b 100644
--- a/pyqt5.ui
+++ b/pyqt5.ui
@@ -7,8 +7,8 @@
0
0
- 570
- 356
+ 500
+ 305
@@ -27,89 +27,83 @@
HT-Gui
-
-
-
- 0
- 0
- 491
- 261
-
-
-
-
- QLayout::SetMinAndMaxSize
-
-
- 0
-
- -
-
-
- 4
-
-
- QLayout::SetMinAndMaxSize
-
-
-
-
-
- Das Label
-
-
- Qt::AlignCenter
-
-
-
- -
-
-
- Laden
-
-
-
- -
-
-
- Schließen
-
-
-
-
-
- -
-
-
- QLayout::SetMinAndMaxSize
-
-
-
-
-
- -
-
-
- Okay
-
-
-
- -
-
-
- Abbrechen
-
-
-
-
-
-
-
+
+ -
+
+
+ QLayout::SetMinAndMaxSize
+
+
+ 0
+
+
-
+
+
+ 4
+
+
+ QLayout::SetMinAndMaxSize
+
+
-
+
+
+ Das Label
+
+
+ Qt::AlignCenter
+
+
+
+ -
+
+
+ Laden
+
+
+
+ -
+
+
+ Schließen
+
+
+
+
+
+ -
+
+
+ QLayout::SetMinAndMaxSize
+
+
-
+
+
+ -
+
+
+ Okay
+
+
+
+ -
+
+
+ Abbrechen
+
+
+
+
+
+
+
+