settings_ui.py 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file 'settings.ui'
  3. #
  4. # Created by: PyQt5 UI code generator 5.10.1
  5. #
  6. # WARNING! All changes made in this file will be lost!
  7. from PyQt5 import QtCore, QtGui, QtWidgets
  8. class Ui_Dialog(object):
  9. def setupUi(self, Dialog):
  10. Dialog.setObjectName("Dialog")
  11. Dialog.resize(215, 195)
  12. icon = QtGui.QIcon()
  13. icon.addPixmap(QtGui.QPixmap("pp.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  14. Dialog.setWindowIcon(icon)
  15. self.gridLayout = QtWidgets.QGridLayout(Dialog)
  16. self.gridLayout.setObjectName("gridLayout")
  17. self.groupBox_2 = QtWidgets.QGroupBox(Dialog)
  18. self.groupBox_2.setObjectName("groupBox_2")
  19. self.formLayout = QtWidgets.QFormLayout(self.groupBox_2)
  20. self.formLayout.setObjectName("formLayout")
  21. self.label = QtWidgets.QLabel(self.groupBox_2)
  22. self.label.setObjectName("label")
  23. self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
  24. self.lineEditIP = QtWidgets.QLineEdit(self.groupBox_2)
  25. sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
  26. sizePolicy.setHorizontalStretch(0)
  27. sizePolicy.setVerticalStretch(0)
  28. sizePolicy.setHeightForWidth(self.lineEditIP.sizePolicy().hasHeightForWidth())
  29. self.lineEditIP.setSizePolicy(sizePolicy)
  30. self.lineEditIP.setCursorPosition(0)
  31. self.lineEditIP.setObjectName("lineEditIP")
  32. self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEditIP)
  33. self.label_4 = QtWidgets.QLabel(self.groupBox_2)
  34. self.label_4.setObjectName("label_4")
  35. self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_4)
  36. self.lineEditPort = QtWidgets.QLineEdit(self.groupBox_2)
  37. sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
  38. sizePolicy.setHorizontalStretch(0)
  39. sizePolicy.setVerticalStretch(0)
  40. sizePolicy.setHeightForWidth(self.lineEditPort.sizePolicy().hasHeightForWidth())
  41. self.lineEditPort.setSizePolicy(sizePolicy)
  42. self.lineEditPort.setObjectName("lineEditPort")
  43. self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEditPort)
  44. self.label_5 = QtWidgets.QLabel(self.groupBox_2)
  45. self.label_5.setObjectName("label_5")
  46. self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_5)
  47. self.lineEditLogFile = QtWidgets.QLineEdit(self.groupBox_2)
  48. sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
  49. sizePolicy.setHorizontalStretch(0)
  50. sizePolicy.setVerticalStretch(0)
  51. sizePolicy.setHeightForWidth(self.lineEditLogFile.sizePolicy().hasHeightForWidth())
  52. self.lineEditLogFile.setSizePolicy(sizePolicy)
  53. self.lineEditLogFile.setObjectName("lineEditLogFile")
  54. self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEditLogFile)
  55. self.gridLayout.addWidget(self.groupBox_2, 0, 0, 1, 1)
  56. self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
  57. self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  58. self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
  59. self.buttonBox.setObjectName("buttonBox")
  60. self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1)
  61. self.retranslateUi(Dialog)
  62. self.buttonBox.accepted.connect(Dialog.accept)
  63. self.buttonBox.rejected.connect(Dialog.reject)
  64. QtCore.QMetaObject.connectSlotsByName(Dialog)
  65. def retranslateUi(self, Dialog):
  66. _translate = QtCore.QCoreApplication.translate
  67. Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
  68. self.groupBox_2.setTitle(_translate("Dialog", "Settings"))
  69. self.label.setText(_translate("Dialog", "IP"))
  70. self.lineEditIP.setInputMask(_translate("Dialog", "009.009.009.009;_"))
  71. self.lineEditIP.setText(_translate("Dialog", "192.168.0.8"))
  72. self.label_4.setText(_translate("Dialog", "Port"))
  73. self.lineEditPort.setInputMask(_translate("Dialog", "00009"))
  74. self.lineEditPort.setText(_translate("Dialog", "1234"))
  75. self.label_5.setText(_translate("Dialog", "Log file"))
  76. self.lineEditLogFile.setText(_translate("Dialog", "default"))