265 lines
16 KiB
Python
265 lines
16 KiB
Python
|
# Form implementation generated from reading ui file 'update_network_settings_form.ui'
|
||
|
#
|
||
|
# Created by: PyQt6 UI code generator 6.6.0
|
||
|
#
|
||
|
# 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_Update_Network_Settings_Form(object):
|
||
|
def setupUi(self, Update_Network_Settings_Form):
|
||
|
Update_Network_Settings_Form.setObjectName("Update_Network_Settings_Form")
|
||
|
Update_Network_Settings_Form.resize(415, 180)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(Update_Network_Settings_Form.sizePolicy().hasHeightForWidth())
|
||
|
Update_Network_Settings_Form.setSizePolicy(sizePolicy)
|
||
|
Update_Network_Settings_Form.setMinimumSize(QtCore.QSize(415, 180))
|
||
|
Update_Network_Settings_Form.setMaximumSize(QtCore.QSize(415, 180))
|
||
|
self.horizontalLayoutWidget = QtWidgets.QWidget(parent=Update_Network_Settings_Form)
|
||
|
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(20, 10, 371, 41))
|
||
|
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
|
||
|
self.ip_addr_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
|
||
|
self.ip_addr_layout.setContentsMargins(0, 0, 0, 0)
|
||
|
self.ip_addr_layout.setObjectName("ip_addr_layout")
|
||
|
self.ip_addr_label = QtWidgets.QLabel(parent=self.horizontalLayoutWidget)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.ip_addr_label.sizePolicy().hasHeightForWidth())
|
||
|
self.ip_addr_label.setSizePolicy(sizePolicy)
|
||
|
self.ip_addr_label.setMaximumSize(QtCore.QSize(120, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
self.ip_addr_label.setFont(font)
|
||
|
self.ip_addr_label.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
|
||
|
self.ip_addr_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||
|
self.ip_addr_label.setObjectName("ip_addr_label")
|
||
|
self.ip_addr_layout.addWidget(self.ip_addr_label)
|
||
|
self.addr_in_0 = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget)
|
||
|
self.addr_in_0.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.addr_in_0.setMaxLength(3)
|
||
|
self.addr_in_0.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.addr_in_0.setObjectName("addr_in_0")
|
||
|
self.ip_addr_layout.addWidget(self.addr_in_0)
|
||
|
self.dot_0_lbl = QtWidgets.QLabel(parent=self.horizontalLayoutWidget)
|
||
|
self.dot_0_lbl.setMaximumSize(QtCore.QSize(10, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
font.setBold(False)
|
||
|
font.setKerning(True)
|
||
|
self.dot_0_lbl.setFont(font)
|
||
|
self.dot_0_lbl.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.dot_0_lbl.setObjectName("dot_0_lbl")
|
||
|
self.ip_addr_layout.addWidget(self.dot_0_lbl)
|
||
|
self.addr_in_1 = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget)
|
||
|
self.addr_in_1.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.addr_in_1.setMaxLength(3)
|
||
|
self.addr_in_1.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.addr_in_1.setObjectName("addr_in_1")
|
||
|
self.ip_addr_layout.addWidget(self.addr_in_1)
|
||
|
self.dot_1_lbl = QtWidgets.QLabel(parent=self.horizontalLayoutWidget)
|
||
|
self.dot_1_lbl.setMaximumSize(QtCore.QSize(10, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
font.setBold(False)
|
||
|
font.setKerning(True)
|
||
|
self.dot_1_lbl.setFont(font)
|
||
|
self.dot_1_lbl.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.dot_1_lbl.setObjectName("dot_1_lbl")
|
||
|
self.ip_addr_layout.addWidget(self.dot_1_lbl)
|
||
|
self.addr_in_2 = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget)
|
||
|
self.addr_in_2.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.addr_in_2.setMaxLength(3)
|
||
|
self.addr_in_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.addr_in_2.setObjectName("addr_in_2")
|
||
|
self.ip_addr_layout.addWidget(self.addr_in_2)
|
||
|
self.dot_2_lbl = QtWidgets.QLabel(parent=self.horizontalLayoutWidget)
|
||
|
self.dot_2_lbl.setMaximumSize(QtCore.QSize(10, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
font.setBold(False)
|
||
|
font.setKerning(True)
|
||
|
self.dot_2_lbl.setFont(font)
|
||
|
self.dot_2_lbl.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.dot_2_lbl.setObjectName("dot_2_lbl")
|
||
|
self.ip_addr_layout.addWidget(self.dot_2_lbl)
|
||
|
self.addr_in_3 = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget)
|
||
|
self.addr_in_3.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.addr_in_3.setMaxLength(3)
|
||
|
self.addr_in_3.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.addr_in_3.setObjectName("addr_in_3")
|
||
|
self.ip_addr_layout.addWidget(self.addr_in_3)
|
||
|
self.horizontalLayoutWidget_4 = QtWidgets.QWidget(parent=Update_Network_Settings_Form)
|
||
|
self.horizontalLayoutWidget_4.setGeometry(QtCore.QRect(20, 130, 371, 47))
|
||
|
self.horizontalLayoutWidget_4.setObjectName("horizontalLayoutWidget_4")
|
||
|
self.buttons_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_4)
|
||
|
self.buttons_layout.setContentsMargins(0, 0, 0, 0)
|
||
|
self.buttons_layout.setObjectName("buttons_layout")
|
||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||
|
self.buttons_layout.addItem(spacerItem)
|
||
|
self.update_btn = QtWidgets.QPushButton(parent=self.horizontalLayoutWidget_4)
|
||
|
self.update_btn.setObjectName("update_btn")
|
||
|
self.buttons_layout.addWidget(self.update_btn)
|
||
|
self.cancel_btn = QtWidgets.QPushButton(parent=self.horizontalLayoutWidget_4)
|
||
|
self.cancel_btn.setObjectName("cancel_btn")
|
||
|
self.buttons_layout.addWidget(self.cancel_btn)
|
||
|
self.horizontalLayoutWidget_3 = QtWidgets.QWidget(parent=Update_Network_Settings_Form)
|
||
|
self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(20, 90, 371, 41))
|
||
|
self.horizontalLayoutWidget_3.setObjectName("horizontalLayoutWidget_3")
|
||
|
self.port_layout_2 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_3)
|
||
|
self.port_layout_2.setContentsMargins(0, 0, 0, 0)
|
||
|
self.port_layout_2.setSpacing(6)
|
||
|
self.port_layout_2.setObjectName("port_layout_2")
|
||
|
self.prefix_len_lbl = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_3)
|
||
|
self.prefix_len_lbl.setMaximumSize(QtCore.QSize(98, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
self.prefix_len_lbl.setFont(font)
|
||
|
self.prefix_len_lbl.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||
|
self.prefix_len_lbl.setObjectName("prefix_len_lbl")
|
||
|
self.port_layout_2.addWidget(self.prefix_len_lbl)
|
||
|
self.prefix_len_in = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget_3)
|
||
|
self.prefix_len_in.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.prefix_len_in.setMaxLength(2)
|
||
|
self.prefix_len_in.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.prefix_len_in.setObjectName("prefix_len_in")
|
||
|
self.port_layout_2.addWidget(self.prefix_len_in)
|
||
|
self.port_no_lbl = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_3)
|
||
|
self.port_no_lbl.setMinimumSize(QtCore.QSize(82, 0))
|
||
|
self.port_no_lbl.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
self.port_no_lbl.setFont(font)
|
||
|
self.port_no_lbl.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||
|
self.port_no_lbl.setObjectName("port_no_lbl")
|
||
|
self.port_layout_2.addWidget(self.port_no_lbl)
|
||
|
self.port_in = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget_3)
|
||
|
self.port_in.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.port_in.setMaxLength(5)
|
||
|
self.port_in.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.port_in.setObjectName("port_in")
|
||
|
self.port_layout_2.addWidget(self.port_in)
|
||
|
spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||
|
self.port_layout_2.addItem(spacerItem1)
|
||
|
self.horizontalLayoutWidget_5 = QtWidgets.QWidget(parent=Update_Network_Settings_Form)
|
||
|
self.horizontalLayoutWidget_5.setGeometry(QtCore.QRect(20, 50, 371, 41))
|
||
|
self.horizontalLayoutWidget_5.setObjectName("horizontalLayoutWidget_5")
|
||
|
self.gateway_layout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_5)
|
||
|
self.gateway_layout.setContentsMargins(0, 0, 0, 0)
|
||
|
self.gateway_layout.setObjectName("gateway_layout")
|
||
|
self.gateway_lbl = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_5)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.gateway_lbl.sizePolicy().hasHeightForWidth())
|
||
|
self.gateway_lbl.setSizePolicy(sizePolicy)
|
||
|
self.gateway_lbl.setMaximumSize(QtCore.QSize(120, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
self.gateway_lbl.setFont(font)
|
||
|
self.gateway_lbl.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
|
||
|
self.gateway_lbl.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||
|
self.gateway_lbl.setObjectName("gateway_lbl")
|
||
|
self.gateway_layout.addWidget(self.gateway_lbl)
|
||
|
self.gateway_in_0 = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget_5)
|
||
|
self.gateway_in_0.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.gateway_in_0.setMaxLength(3)
|
||
|
self.gateway_in_0.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.gateway_in_0.setObjectName("gateway_in_0")
|
||
|
self.gateway_layout.addWidget(self.gateway_in_0)
|
||
|
self.dot_0_lbl_2 = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_5)
|
||
|
self.dot_0_lbl_2.setMaximumSize(QtCore.QSize(10, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
font.setBold(False)
|
||
|
font.setKerning(True)
|
||
|
self.dot_0_lbl_2.setFont(font)
|
||
|
self.dot_0_lbl_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.dot_0_lbl_2.setObjectName("dot_0_lbl_2")
|
||
|
self.gateway_layout.addWidget(self.dot_0_lbl_2)
|
||
|
self.gateway_in_1 = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget_5)
|
||
|
self.gateway_in_1.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.gateway_in_1.setMaxLength(3)
|
||
|
self.gateway_in_1.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.gateway_in_1.setObjectName("gateway_in_1")
|
||
|
self.gateway_layout.addWidget(self.gateway_in_1)
|
||
|
self.dot_1_lbl_2 = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_5)
|
||
|
self.dot_1_lbl_2.setMaximumSize(QtCore.QSize(10, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
font.setBold(False)
|
||
|
font.setKerning(True)
|
||
|
self.dot_1_lbl_2.setFont(font)
|
||
|
self.dot_1_lbl_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.dot_1_lbl_2.setObjectName("dot_1_lbl_2")
|
||
|
self.gateway_layout.addWidget(self.dot_1_lbl_2)
|
||
|
self.gateway_in_2 = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget_5)
|
||
|
self.gateway_in_2.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.gateway_in_2.setMaxLength(3)
|
||
|
self.gateway_in_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.gateway_in_2.setObjectName("gateway_in_2")
|
||
|
self.gateway_layout.addWidget(self.gateway_in_2)
|
||
|
self.dot_2_lbl_2 = QtWidgets.QLabel(parent=self.horizontalLayoutWidget_5)
|
||
|
self.dot_2_lbl_2.setMaximumSize(QtCore.QSize(10, 16777215))
|
||
|
font = QtGui.QFont()
|
||
|
font.setPointSize(12)
|
||
|
font.setBold(False)
|
||
|
font.setKerning(True)
|
||
|
self.dot_2_lbl_2.setFont(font)
|
||
|
self.dot_2_lbl_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.dot_2_lbl_2.setObjectName("dot_2_lbl_2")
|
||
|
self.gateway_layout.addWidget(self.dot_2_lbl_2)
|
||
|
self.gateway_in_3 = QtWidgets.QLineEdit(parent=self.horizontalLayoutWidget_5)
|
||
|
self.gateway_in_3.setMaximumSize(QtCore.QSize(50, 16777215))
|
||
|
self.gateway_in_3.setMaxLength(3)
|
||
|
self.gateway_in_3.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||
|
self.gateway_in_3.setObjectName("gateway_in_3")
|
||
|
self.gateway_layout.addWidget(self.gateway_in_3)
|
||
|
|
||
|
self.retranslateUi(Update_Network_Settings_Form)
|
||
|
self.cancel_btn.clicked.connect(Update_Network_Settings_Form.reject) # type: ignore
|
||
|
self.update_btn.clicked.connect(Update_Network_Settings_Form.accept) # type: ignore
|
||
|
QtCore.QMetaObject.connectSlotsByName(Update_Network_Settings_Form)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.addr_in_0, self.addr_in_1)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.addr_in_1, self.addr_in_2)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.addr_in_2, self.addr_in_3)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.addr_in_3, self.gateway_in_0)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.gateway_in_0, self.gateway_in_1)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.gateway_in_1, self.gateway_in_2)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.gateway_in_2, self.gateway_in_3)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.gateway_in_3, self.prefix_len_in)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.prefix_len_in, self.port_in)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.port_in, self.update_btn)
|
||
|
Update_Network_Settings_Form.setTabOrder(self.update_btn, self.cancel_btn)
|
||
|
|
||
|
def retranslateUi(self, Update_Network_Settings_Form):
|
||
|
_translate = QtCore.QCoreApplication.translate
|
||
|
Update_Network_Settings_Form.setWindowTitle(_translate("Update_Network_Settings_Form", "Update Network Settings"))
|
||
|
self.ip_addr_label.setText(_translate("Update_Network_Settings_Form", "IP Address:"))
|
||
|
self.addr_in_0.setText(_translate("Update_Network_Settings_Form", "192"))
|
||
|
self.dot_0_lbl.setText(_translate("Update_Network_Settings_Form", "."))
|
||
|
self.addr_in_1.setText(_translate("Update_Network_Settings_Form", "168"))
|
||
|
self.dot_1_lbl.setText(_translate("Update_Network_Settings_Form", "."))
|
||
|
self.addr_in_2.setText(_translate("Update_Network_Settings_Form", "1"))
|
||
|
self.dot_2_lbl.setText(_translate("Update_Network_Settings_Form", "."))
|
||
|
self.addr_in_3.setText(_translate("Update_Network_Settings_Form", "128"))
|
||
|
self.update_btn.setText(_translate("Update_Network_Settings_Form", "Update"))
|
||
|
self.cancel_btn.setText(_translate("Update_Network_Settings_Form", "Cancel"))
|
||
|
self.prefix_len_lbl.setText(_translate("Update_Network_Settings_Form", "Prefix Length:"))
|
||
|
self.prefix_len_in.setText(_translate("Update_Network_Settings_Form", "24"))
|
||
|
self.port_no_lbl.setText(_translate("Update_Network_Settings_Form", "Port:"))
|
||
|
self.port_in.setText(_translate("Update_Network_Settings_Form", "1337"))
|
||
|
self.gateway_lbl.setText(_translate("Update_Network_Settings_Form", "Gateway:"))
|
||
|
self.gateway_in_0.setText(_translate("Update_Network_Settings_Form", "192"))
|
||
|
self.dot_0_lbl_2.setText(_translate("Update_Network_Settings_Form", "."))
|
||
|
self.gateway_in_1.setText(_translate("Update_Network_Settings_Form", "168"))
|
||
|
self.dot_1_lbl_2.setText(_translate("Update_Network_Settings_Form", "."))
|
||
|
self.gateway_in_2.setText(_translate("Update_Network_Settings_Form", "1"))
|
||
|
self.dot_2_lbl_2.setText(_translate("Update_Network_Settings_Form", "."))
|
||
|
self.gateway_in_3.setText(_translate("Update_Network_Settings_Form", "1"))
|