# Form implementation generated from reading ui file 'gotify_tray/gui/designs\widget_settings.ui' # # Created by: PyQt6 UI code generator 6.2.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 PyQt6 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(375, 292) self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout.setObjectName("verticalLayout") self.groupBox_5 = QtWidgets.QGroupBox(Dialog) self.groupBox_5.setObjectName("groupBox_5") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_5) self.gridLayout_4.setObjectName("gridLayout_4") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.gridLayout_4.addItem(spacerItem, 1, 2, 1, 1) self.label_6 = QtWidgets.QLabel(self.groupBox_5) self.label_6.setObjectName("label_6") self.gridLayout_4.addWidget(self.label_6, 2, 2, 1, 1) self.label_5 = QtWidgets.QLabel(self.groupBox_5) self.label_5.setObjectName("label_5") self.gridLayout_4.addWidget(self.label_5, 2, 0, 1, 1) self.spin_duration = QtWidgets.QSpinBox(self.groupBox_5) self.spin_duration.setMinimum(500) self.spin_duration.setMaximum(30000) self.spin_duration.setSingleStep(100) self.spin_duration.setObjectName("spin_duration") self.gridLayout_4.addWidget(self.spin_duration, 2, 1, 1, 1) self.spin_priority = QtWidgets.QSpinBox(self.groupBox_5) self.spin_priority.setMinimum(1) self.spin_priority.setMaximum(10) self.spin_priority.setProperty("value", 5) self.spin_priority.setObjectName("spin_priority") self.gridLayout_4.addWidget(self.spin_priority, 1, 1, 1, 1) self.label_4 = QtWidgets.QLabel(self.groupBox_5) self.label_4.setObjectName("label_4") self.gridLayout_4.addWidget(self.label_4, 1, 0, 1, 1) self.cb_icons_notification = QtWidgets.QCheckBox(self.groupBox_5) self.cb_icons_notification.setObjectName("cb_icons_notification") self.gridLayout_4.addWidget(self.cb_icons_notification, 0, 0, 1, 3) self.verticalLayout.addWidget(self.groupBox_5) self.groupBox_4 = QtWidgets.QGroupBox(Dialog) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout_3.setObjectName("gridLayout_3") self.pb_change_server_info = QtWidgets.QPushButton(self.groupBox_4) self.pb_change_server_info.setObjectName("pb_change_server_info") self.gridLayout_3.addWidget(self.pb_change_server_info, 0, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.gridLayout_3.addItem(spacerItem1, 0, 1, 1, 1) self.verticalLayout.addWidget(self.groupBox_4) self.groupBox_7 = QtWidgets.QGroupBox(Dialog) self.groupBox_7.setObjectName("groupBox_7") self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_7) self.gridLayout_6.setObjectName("gridLayout_6") self.label_7 = QtWidgets.QLabel(self.groupBox_7) self.label_7.setObjectName("label_7") self.gridLayout_6.addWidget(self.label_7, 0, 0, 1, 1) self.combo_logging = QtWidgets.QComboBox(self.groupBox_7) self.combo_logging.setObjectName("combo_logging") self.gridLayout_6.addWidget(self.combo_logging, 0, 1, 1, 1) self.pb_open_log = QtWidgets.QPushButton(self.groupBox_7) self.pb_open_log.setMaximumSize(QtCore.QSize(30, 16777215)) self.pb_open_log.setObjectName("pb_open_log") self.gridLayout_6.addWidget(self.pb_open_log, 0, 2, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(190, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.gridLayout_6.addItem(spacerItem2, 0, 3, 1, 1) self.verticalLayout.addWidget(self.groupBox_7) self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(Dialog) self.buttonBox.accepted.connect(Dialog.accept) # type: ignore self.buttonBox.rejected.connect(Dialog.reject) # type: ignore QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.cb_icons_notification, self.spin_priority) Dialog.setTabOrder(self.spin_priority, self.spin_duration) Dialog.setTabOrder(self.spin_duration, self.pb_change_server_info) Dialog.setTabOrder(self.pb_change_server_info, self.combo_logging) Dialog.setTabOrder(self.combo_logging, self.pb_open_log) def retranslateUi(self, Dialog): _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "Dialog")) self.groupBox_5.setTitle(_translate("Dialog", "Notifications")) self.label_6.setText(_translate("Dialog", "ms")) self.label_5.setText(_translate("Dialog", "Notification duration")) self.label_4.setText(_translate("Dialog", "Minimum priority to show notifications:")) self.cb_icons_notification.setText(_translate("Dialog", "Show notification icons")) self.groupBox_4.setTitle(_translate("Dialog", "Server info")) self.pb_change_server_info.setText(_translate("Dialog", "Change server info")) self.groupBox_7.setTitle(_translate("Dialog", "Logging")) self.label_7.setText(_translate("Dialog", "Level")) self.pb_open_log.setToolTip(_translate("Dialog", "Open logfile")) self.pb_open_log.setText(_translate("Dialog", "...")) if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) Dialog = QtWidgets.QDialog() ui = Ui_Dialog() ui.setupUi(Dialog) Dialog.show() sys.exit(app.exec())