Eine erste Verbindung zwischen der designten UI

und dem Hauptprogramm.
This commit is contained in:
2023-10-31 17:58:54 +01:00
parent 836224717b
commit 5df0d82203
3 changed files with 105 additions and 60 deletions

14
Teil_60_Qt_1.py Normal file
View File

@@ -0,0 +1,14 @@
from PySide6.QtWidgets import QApplication, QMainWindow
from pyqt5_gui import Ui_MainWindow
class Frm_main(QMainWindow, Ui_MainWindow):
def __init__(self):
super().__init__()
self.setupUi(self)
app = QApplication()
frm_main = Frm_main()
frm_main.lbl_eins.setText("Ein Label")
#self.lbl_eins.setText(QCoreApplication.translate("MainWindow", u"Das Label", None))
frm_main.show()
app.exec()