Files
clever-show/Server/config_editor.py
Artem30801 3dc665bd00 WIP
2019-11-25 23:19:07 +03:00

61 lines
2.5 KiB
Python

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'config_editor.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_config_dialog(object):
def setupUi(self, config_dialog):
config_dialog.setObjectName("config_dialog")
config_dialog.resize(317, 247)
config_dialog.setModal(False)
self.gridLayout = QtWidgets.QGridLayout(config_dialog)
self.gridLayout.setObjectName("gridLayout")
self.config_view = QtWidgets.QTreeView(config_dialog)
self.config_view.setObjectName("config_view")
self.gridLayout.addWidget(self.config_view, 0, 0, 1, 1)
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.delete_button = QtWidgets.QPushButton(config_dialog)
self.delete_button.setObjectName("delete_button")
self.gridLayout_2.addWidget(self.delete_button, 0, 0, 1, 1)
self.checkBox = QtWidgets.QCheckBox(config_dialog)
self.checkBox.setObjectName("checkBox")
self.gridLayout_2.addWidget(self.checkBox, 1, 0, 1, 1)
self.buttonBox = QtWidgets.QDialogButtonBox(config_dialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Save)
self.buttonBox.setCenterButtons(False)
self.buttonBox.setObjectName("buttonBox")
self.gridLayout_2.addWidget(self.buttonBox, 1, 1, 1, 1)
self.gridLayout.addLayout(self.gridLayout_2, 1, 0, 1, 1)
self.retranslateUi(config_dialog)
self.buttonBox.accepted.connect(config_dialog.accept)
self.buttonBox.rejected.connect(config_dialog.reject)
QtCore.QMetaObject.connectSlotsByName(config_dialog)
def retranslateUi(self, config_dialog):
_translate = QtCore.QCoreApplication.translate
config_dialog.setWindowTitle(_translate("config_dialog", "Config Editor"))
self.delete_button.setText(_translate("config_dialog", "Delete"))
self.delete_button.setShortcut(_translate("config_dialog", "Del"))
self.checkBox.setText(_translate("config_dialog", "Restart"))
self.checkBox.setShortcut(_translate("config_dialog", "R"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
config_dialog = QtWidgets.QDialog()
ui = Ui_config_dialog()
ui.setupUi(config_dialog)
config_dialog.show()
sys.exit(app.exec_())