# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'settings.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # 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(215, 195) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("pp.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.groupBox_2 = QtWidgets.QGroupBox(Dialog) self.groupBox_2.setObjectName("groupBox_2") self.formLayout = QtWidgets.QFormLayout(self.groupBox_2) self.formLayout.setObjectName("formLayout") self.label = QtWidgets.QLabel(self.groupBox_2) self.label.setObjectName("label") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) self.lineEditIP = QtWidgets.QLineEdit(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditIP.sizePolicy().hasHeightForWidth()) self.lineEditIP.setSizePolicy(sizePolicy) self.lineEditIP.setCursorPosition(0) self.lineEditIP.setObjectName("lineEditIP") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEditIP) self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setObjectName("label_4") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_4) self.lineEditPort = QtWidgets.QLineEdit(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditPort.sizePolicy().hasHeightForWidth()) self.lineEditPort.setSizePolicy(sizePolicy) self.lineEditPort.setObjectName("lineEditPort") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEditPort) self.label_5 = QtWidgets.QLabel(self.groupBox_2) self.label_5.setObjectName("label_5") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_5) self.lineEditLogFile = QtWidgets.QLineEdit(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditLogFile.sizePolicy().hasHeightForWidth()) self.lineEditLogFile.setSizePolicy(sizePolicy) self.lineEditLogFile.setObjectName("lineEditLogFile") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEditLogFile) self.gridLayout.addWidget(self.groupBox_2, 0, 0, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout.addWidget(self.buttonBox, 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", "Dialog")) self.groupBox_2.setTitle(_translate("Dialog", "Settings")) self.label.setText(_translate("Dialog", "IP")) self.lineEditIP.setInputMask(_translate("Dialog", "009.009.009.009;_")) self.lineEditIP.setText(_translate("Dialog", "192.168.0.8")) self.label_4.setText(_translate("Dialog", "Port")) self.lineEditPort.setInputMask(_translate("Dialog", "00009")) self.lineEditPort.setText(_translate("Dialog", "1234")) self.label_5.setText(_translate("Dialog", "Log file")) self.lineEditLogFile.setText(_translate("Dialog", "default"))