# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'connDialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.3
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_connection_widget(object):
    def setupUi(self, connection_widget):
        connection_widget.setObjectName("connection_widget")
        connection_widget.resize(320, 198)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(connection_widget.sizePolicy().hasHeightForWidth())
        connection_widget.setSizePolicy(sizePolicy)
        connection_widget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.verticalLayout = QtWidgets.QVBoxLayout(connection_widget)
        self.verticalLayout.setContentsMargins(10, 10, 10, 10)
        self.verticalLayout.setSpacing(5)
        self.verticalLayout.setObjectName("verticalLayout")
        self.ip_label = QtWidgets.QLabel(connection_widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ip_label.sizePolicy().hasHeightForWidth())
        self.ip_label.setSizePolicy(sizePolicy)
        self.ip_label.setMinimumSize(QtCore.QSize(0, 20))
        self.ip_label.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.ip_label.setFont(font)
        self.ip_label.setAlignment(QtCore.Qt.AlignCenter)
        self.ip_label.setObjectName("ip_label")
        self.verticalLayout.addWidget(self.ip_label)
        self.widget = QtWidgets.QWidget(connection_widget)
        self.widget.setObjectName("widget")
        self.IP = QtWidgets.QHBoxLayout(self.widget)
        self.IP.setContentsMargins(-1, -1, -1, 10)
        self.IP.setSpacing(0)
        self.IP.setObjectName("IP")
        spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        self.IP.addItem(spacerItem)
        self.ip_box = QtWidgets.QComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ip_box.sizePolicy().hasHeightForWidth())
        self.ip_box.setSizePolicy(sizePolicy)
        self.ip_box.setMinimumSize(QtCore.QSize(200, 30))
        self.ip_box.setMaximumSize(QtCore.QSize(200, 30))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.ip_box.setFont(font)
        self.ip_box.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.ip_box.setEditable(True)
        self.ip_box.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
        self.ip_box.setIconSize(QtCore.QSize(16, 25))
        self.ip_box.setFrame(False)
        self.ip_box.setModelColumn(0)
        self.ip_box.setObjectName("ip_box")
        self.IP.addWidget(self.ip_box)
        spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        self.IP.addItem(spacerItem1)
        self.verticalLayout.addWidget(self.widget)
        self.status_label = QtWidgets.QLabel(connection_widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.status_label.sizePolicy().hasHeightForWidth())
        self.status_label.setSizePolicy(sizePolicy)
        self.status_label.setMinimumSize(QtCore.QSize(0, 20))
        self.status_label.setMaximumSize(QtCore.QSize(16777215, 20))
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.status_label.setFont(font)
        self.status_label.setAlignment(QtCore.Qt.AlignCenter)
        self.status_label.setObjectName("status_label")
        self.verticalLayout.addWidget(self.status_label)
        self.line = QtWidgets.QFrame(connection_widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.line.sizePolicy().hasHeightForWidth())
        self.line.setSizePolicy(sizePolicy)
        self.line.setMinimumSize(QtCore.QSize(300, 0))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.help = QtWidgets.QLabel(connection_widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.help.sizePolicy().hasHeightForWidth())
        self.help.setSizePolicy(sizePolicy)
        self.help.setMinimumSize(QtCore.QSize(0, 0))
        self.help.setMaximumSize(QtCore.QSize(650, 200))
        self.help.setText("")
        self.help.setScaledContents(True)
        self.help.setAlignment(QtCore.Qt.AlignCenter)
        self.help.setObjectName("help")
        self.verticalLayout.addWidget(self.help)
        spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout.addItem(spacerItem2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(0, 10, 0, 20)
        self.horizontalLayout_3.setSpacing(10)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem3)
        self.addIP_btn = QtWidgets.QPushButton(connection_widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.addIP_btn.sizePolicy().hasHeightForWidth())
        self.addIP_btn.setSizePolicy(sizePolicy)
        self.addIP_btn.setMinimumSize(QtCore.QSize(80, 30))
        self.addIP_btn.setMaximumSize(QtCore.QSize(80, 30))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.addIP_btn.setFont(font)
        self.addIP_btn.setAutoDefault(False)
        self.addIP_btn.setObjectName("addIP_btn")
        self.horizontalLayout_3.addWidget(self.addIP_btn)
        self.rmIP_btn = QtWidgets.QPushButton(connection_widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rmIP_btn.sizePolicy().hasHeightForWidth())
        self.rmIP_btn.setSizePolicy(sizePolicy)
        self.rmIP_btn.setMinimumSize(QtCore.QSize(80, 30))
        self.rmIP_btn.setMaximumSize(QtCore.QSize(80, 30))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.rmIP_btn.setFont(font)
        self.rmIP_btn.setAutoDefault(False)
        self.rmIP_btn.setObjectName("rmIP_btn")
        self.horizontalLayout_3.addWidget(self.rmIP_btn)
        self.line_2 = QtWidgets.QFrame(connection_widget)
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.horizontalLayout_3.addWidget(self.line_2)
        self.conn_btn = QtWidgets.QPushButton(connection_widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.conn_btn.sizePolicy().hasHeightForWidth())
        self.conn_btn.setSizePolicy(sizePolicy)
        self.conn_btn.setMinimumSize(QtCore.QSize(80, 30))
        self.conn_btn.setMaximumSize(QtCore.QSize(80, 30))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.conn_btn.setFont(font)
        self.conn_btn.setAutoDefault(False)
        self.conn_btn.setObjectName("conn_btn")
        self.horizontalLayout_3.addWidget(self.conn_btn)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem4)
        self.verticalLayout.addLayout(self.horizontalLayout_3)

        self.retranslateUi(connection_widget)
        QtCore.QMetaObject.connectSlotsByName(connection_widget)

    def retranslateUi(self, connection_widget):
        _translate = QtCore.QCoreApplication.translate
        connection_widget.setWindowTitle(_translate("connection_widget", "Dialog"))
        self.ip_label.setText(_translate("connection_widget", "Select IP Address:"))
        self.status_label.setText(_translate("connection_widget", "status"))
        self.addIP_btn.setText(_translate("connection_widget", "Add"))
        self.rmIP_btn.setText(_translate("connection_widget", "Remove"))
        self.conn_btn.setText(_translate("connection_widget", "Connect"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    connection_widget = QtWidgets.QDialog()
    ui = Ui_connection_widget()
    ui.setupUi(connection_widget)
    connection_widget.show()
    sys.exit(app.exec_())
