threads __init__, pyside6->pyqt6
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
# Form implementation generated from reading ui file 'ui\dialogs\apparat_extend.ui'
|
||||
#
|
||||
# Created by: PySide6 UI code generator 6.3.1
|
||||
# Created by: PyQt6 UI code generator 6.3.1
|
||||
#
|
||||
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||
# run again. Do not edit this file unless you know what you are doing.
|
||||
|
||||
|
||||
from PySide6 import QtCore, QtGui, QtWidgets
|
||||
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||
|
||||
from src.backend.semester import generateSemesterByDate
|
||||
|
||||
|
||||
class Ui_Dialog(object):
|
||||
def setupUi(self, Dialog):
|
||||
Dialog.setObjectName("Dialog")
|
||||
@@ -94,12 +96,14 @@ class Ui_Dialog(object):
|
||||
# else:
|
||||
# self.rad_winter.setChecked(True)
|
||||
return {
|
||||
"semester": f"SoSe {int(self.sem_year.text()[-2:])}"
|
||||
if self.rad_sommer.isChecked()
|
||||
else f"WiSe {int(self.sem_year.text()[-2:])}/{int(self.sem_year.text()[-2:])+1}",
|
||||
"dauerapp": self.dauerapp.isChecked()
|
||||
if self.dauerapp.isChecked()
|
||||
else False,
|
||||
"semester": (
|
||||
f"SoSe {int(self.sem_year.text()[-2:])}"
|
||||
if self.rad_sommer.isChecked()
|
||||
else f"WiSe {int(self.sem_year.text()[-2:])}/{int(self.sem_year.text()[-2:])+1}"
|
||||
),
|
||||
"dauerapp": (
|
||||
self.dauerapp.isChecked() if self.dauerapp.isChecked() else False
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
@@ -112,3 +116,4 @@ if __name__ == "__main__":
|
||||
ui.setupUi(Dialog)
|
||||
Dialog.show()
|
||||
sys.exit(app.exec())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user