mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-27 07:29:33 +00:00
61 lines
2.3 KiB
Python
61 lines
2.3 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_Dialog(object):
|
|
def setupUi(self, Dialog):
|
|
Dialog.setObjectName("Dialog")
|
|
Dialog.resize(268, 247)
|
|
Dialog.setModal(False)
|
|
self.gridLayout = QtWidgets.QGridLayout(Dialog)
|
|
self.gridLayout.setObjectName("gridLayout")
|
|
self.treeView = QtWidgets.QTreeView(Dialog)
|
|
self.treeView.setObjectName("treeView")
|
|
self.gridLayout.addWidget(self.treeView, 0, 0, 1, 1)
|
|
self.gridLayout_2 = QtWidgets.QGridLayout()
|
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
|
self.pushButton = QtWidgets.QPushButton(Dialog)
|
|
self.pushButton.setObjectName("pushButton")
|
|
self.gridLayout_2.addWidget(self.pushButton, 0, 0, 1, 1)
|
|
self.checkBox = QtWidgets.QCheckBox(Dialog)
|
|
self.checkBox.setObjectName("checkBox")
|
|
self.gridLayout_2.addWidget(self.checkBox, 1, 0, 1, 1)
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(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(Dialog)
|
|
self.buttonBox.accepted.connect(Dialog.accept)
|
|
self.buttonBox.rejected.connect(Dialog.reject)
|
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
|
|
|
def retranslateUi(self, Dialog):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
Dialog.setWindowTitle(_translate("Dialog", "Config Editor"))
|
|
self.pushButton.setText(_translate("Dialog", "Delete"))
|
|
self.pushButton.setShortcut(_translate("Dialog", "Del"))
|
|
self.checkBox.setText(_translate("Dialog", "Restart"))
|
|
self.checkBox.setShortcut(_translate("Dialog", "R"))
|
|
|
|
|
|
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_())
|