From 2b9e2292fa781a532c12c3d27c41ed4c7c9dd2e1 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 9 Sep 2020 23:41:42 +0200 Subject: [PATCH] Added Clear Fields Dialog --- ui_clear_dialog.py | 52 +++++++++++++++++++++++++++++++++++++++ ui_clear_dialog.ui | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 ui_clear_dialog.py create mode 100644 ui_clear_dialog.ui diff --git a/ui_clear_dialog.py b/ui_clear_dialog.py new file mode 100644 index 0000000..97a627e --- /dev/null +++ b/ui_clear_dialog.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'ui_clear_dialog.ui' +# +# Created by: PyQt5 UI code generator 5.15.0 +# +# WARNING: Any manual changes made to this file will be lost when pyuic5 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt5 import QtCore, QtGui, QtWidgets + + +class Ui_ClearDialog(object): + def setupUi(self, ClearDialog): + ClearDialog.setObjectName("ClearDialog") + ClearDialog.setWindowModality(QtCore.Qt.ApplicationModal) + ClearDialog.resize(265, 75) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(ClearDialog.sizePolicy().hasHeightForWidth()) + ClearDialog.setSizePolicy(sizePolicy) + self.verticalLayout = QtWidgets.QVBoxLayout(ClearDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.t_clear = QtWidgets.QLabel(ClearDialog) + self.t_clear.setObjectName("t_clear") + self.verticalLayout.addWidget(self.t_clear) + self.l_buttons = QtWidgets.QHBoxLayout() + self.l_buttons.setObjectName("l_buttons") + self.b_yes = QtWidgets.QPushButton(ClearDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.b_yes.sizePolicy().hasHeightForWidth()) + self.b_yes.setSizePolicy(sizePolicy) + self.b_yes.setObjectName("b_yes") + self.l_buttons.addWidget(self.b_yes) + self.b_no = QtWidgets.QPushButton(ClearDialog) + self.b_no.setObjectName("b_no") + self.l_buttons.addWidget(self.b_no) + self.verticalLayout.addLayout(self.l_buttons) + + self.retranslateUi(ClearDialog) + QtCore.QMetaObject.connectSlotsByName(ClearDialog) + + def retranslateUi(self, ClearDialog): + _translate = QtCore.QCoreApplication.translate + ClearDialog.setWindowTitle(_translate("ClearDialog", "Eingabefelder leeren")) + self.t_clear.setText(_translate("ClearDialog", "Sollen die Eingabefelder geleert werden?")) + self.b_yes.setText(_translate("ClearDialog", "Ja")) + self.b_no.setText(_translate("ClearDialog", "Nein")) diff --git a/ui_clear_dialog.ui b/ui_clear_dialog.ui new file mode 100644 index 0000000..45ef83e --- /dev/null +++ b/ui_clear_dialog.ui @@ -0,0 +1,61 @@ + + + ClearDialog + + + Qt::ApplicationModal + + + + 0 + 0 + 265 + 75 + + + + + 0 + 0 + + + + Eingabefelder leeren + + + + + + Sollen die Eingabefelder geleert werden? + + + + + + + + + + 0 + 0 + + + + Ja + + + + + + + Nein + + + + + + + + + +