<reponame>fer-moreira/MYQT<filename>MYQT_Application/assets/UI/Scripts/ConnectorWindow.py
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '.\assets\UI\Layout\ConnectorWindow.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Connector(object):
    def setupUi(self, Connector):
        Connector.setObjectName("Connector")
        Connector.setWindowModality(QtCore.Qt.ApplicationModal)
        Connector.resize(302, 368)
        Connector.setMinimumSize(QtCore.QSize(302, 368))
        Connector.setMaximumSize(QtCore.QSize(302, 368))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        Connector.setFont(font)
        Connector.setStyleSheet("")
        Connector.setIconSize(QtCore.QSize(32, 32))
        Connector.setDockNestingEnabled(False)
        Connector.setDockOptions(QtWidgets.QMainWindow.AllowTabbedDocks|QtWidgets.QMainWindow.AnimatedDocks|QtWidgets.QMainWindow.VerticalTabs)
        self.centralwidget = QtWidgets.QWidget(Connector)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.dbType = QtWidgets.QComboBox(self.centralwidget)
        self.dbType.setGeometry(QtCore.QRect(10, 14, 281, 40))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dbType.sizePolicy().hasHeightForWidth())
        self.dbType.setSizePolicy(sizePolicy)
        self.dbType.setMinimumSize(QtCore.QSize(101, 40))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.dbType.setFont(font)
        self.dbType.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.dbType.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.dbType.setAutoFillBackground(False)
        self.dbType.setEditable(False)
        self.dbType.setMaxCount(3)
        self.dbType.setIconSize(QtCore.QSize(32, 32))
        self.dbType.setFrame(False)
        self.dbType.setObjectName("dbType")
        self.dbType.addItem("")
        self.dbType.addItem("")
        self.dbType.addItem("")
        self.remember = QtWidgets.QCheckBox(self.centralwidget)
        self.remember.setEnabled(True)
        self.remember.setGeometry(QtCore.QRect(160, 255, 130, 40))
        self.remember.setMaximumSize(QtCore.QSize(130, 40))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(8)
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        self.remember.setFont(font)
        self.remember.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.remember.setAutoFillBackground(True)
        self.remember.setIconSize(QtCore.QSize(32, 32))
        self.remember.setCheckable(True)
        self.remember.setChecked(True)
        self.remember.setAutoRepeat(False)
        self.remember.setAutoExclusive(False)
        self.remember.setTristate(False)
        self.remember.setObjectName("remember")
        self.pass_in = QtWidgets.QLineEdit(self.centralwidget)
        self.pass_in.setGeometry(QtCore.QRect(10, 204, 281, 41))
        self.pass_in.setMinimumSize(QtCore.QSize(281, 41))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.pass_in.setFont(font)
        self.pass_in.setStyleSheet("padding:7;")
        self.pass_in.setText("")
        self.pass_in.setFrame(False)
        self.pass_in.setEchoMode(QtWidgets.QLineEdit.Password)
        self.pass_in.setCursorMoveStyle(QtCore.Qt.LogicalMoveStyle)
        self.pass_in.setClearButtonEnabled(False)
        self.pass_in.setObjectName("pass_in")
        self.connect = QtWidgets.QPushButton(self.centralwidget)
        self.connect.setGeometry(QtCore.QRect(10, 305, 281, 51))
        self.connect.setMinimumSize(QtCore.QSize(281, 51))
        self.connect.setMaximumSize(QtCore.QSize(281, 51))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(14)
        self.connect.setFont(font)
        self.connect.setStyleSheet("")
        self.connect.setAutoDefault(False)
        self.connect.setDefault(False)
        self.connect.setFlat(False)
        self.connect.setObjectName("connect")
        self.user_in = QtWidgets.QLineEdit(self.centralwidget)
        self.user_in.setGeometry(QtCore.QRect(10, 157, 281, 41))
        self.user_in.setMinimumSize(QtCore.QSize(281, 41))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.user_in.setFont(font)
        self.user_in.setStyleSheet("padding:7;")
        self.user_in.setText("")
        self.user_in.setFrame(False)
        self.user_in.setClearButtonEnabled(False)
        self.user_in.setObjectName("user_in")
        self.buffered = QtWidgets.QCheckBox(self.centralwidget)
        self.buffered.setEnabled(True)
        self.buffered.setGeometry(QtCore.QRect(10, 255, 140, 40))
        self.buffered.setMaximumSize(QtCore.QSize(140, 40))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(8)
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        self.buffered.setFont(font)
        self.buffered.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.buffered.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.buffered.setAutoFillBackground(True)
        self.buffered.setIconSize(QtCore.QSize(32, 32))
        self.buffered.setCheckable(True)
        self.buffered.setChecked(True)
        self.buffered.setAutoRepeat(False)
        self.buffered.setAutoExclusive(False)
        self.buffered.setTristate(False)
        self.buffered.setObjectName("buffered")
        self.host_in = QtWidgets.QLineEdit(self.centralwidget)
        self.host_in.setGeometry(QtCore.QRect(10, 60, 281, 41))
        self.host_in.setMinimumSize(QtCore.QSize(131, 41))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.host_in.setFont(font)
        self.host_in.setStyleSheet("padding:7;")
        self.host_in.setFrame(False)
        self.host_in.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.host_in.setClearButtonEnabled(False)
        self.host_in.setObjectName("host_in")
        self.port_in = QtWidgets.QLineEdit(self.centralwidget)
        self.port_in.setGeometry(QtCore.QRect(10, 110, 280, 41))
        self.port_in.setMinimumSize(QtCore.QSize(141, 41))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.port_in.setFont(font)
        self.port_in.setStyleSheet("padding:7;")
        self.port_in.setText("")
        self.port_in.setFrame(False)
        self.port_in.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.port_in.setClearButtonEnabled(False)
        self.port_in.setObjectName("port_in")
        Connector.setCentralWidget(self.centralwidget)

        self.retranslateUi(Connector)
        QtCore.QMetaObject.connectSlotsByName(Connector)
        Connector.setTabOrder(self.dbType, self.host_in)
        Connector.setTabOrder(self.host_in, self.port_in)
        Connector.setTabOrder(self.port_in, self.user_in)
        Connector.setTabOrder(self.user_in, self.pass_in)
        Connector.setTabOrder(self.pass_in, self.buffered)
        Connector.setTabOrder(self.buffered, self.remember)
        Connector.setTabOrder(self.remember, self.connect)

    def retranslateUi(self, Connector):
        _translate = QtCore.QCoreApplication.translate
        Connector.setWindowTitle(_translate("Connector", "SQL Connector"))
        self.dbType.setItemText(0, _translate("Connector", "MY SQL"))
        self.dbType.setItemText(1, _translate("Connector", "Microsoft Server"))
        self.dbType.setItemText(2, _translate("Connector", "Postgre SQL "))
        self.remember.setToolTip(_translate("Connector", "<html><head/><body><p>Trusted Connection</p></body></html>"))
        self.remember.setText(_translate("Connector", "Remember me"))
        self.pass_in.setToolTip(_translate("Connector", "<html><head/><body><p>Password</p></body></html>"))
        self.pass_in.setPlaceholderText(_translate("Connector", "Password:"))
        self.connect.setText(_translate("Connector", "CONNECT"))
        self.connect.setShortcut(_translate("Connector", "Enter"))
        self.user_in.setToolTip(_translate("Connector", "<html><head/><body><p>Username</p></body></html>"))
        self.user_in.setPlaceholderText(_translate("Connector", "User:"))
        self.buffered.setToolTip(_translate("Connector", "<html><head/><body><p>Buffered Connection</p></body></html>"))
        self.buffered.setText(_translate("Connector", "Buffered"))
        self.host_in.setToolTip(_translate("Connector", "<html><head/><body><p>Server / IP</p></body></html>"))
        self.host_in.setText(_translate("Connector", "localhost"))
        self.host_in.setPlaceholderText(_translate("Connector", "Server/IP:"))
        self.port_in.setToolTip(_translate("Connector", "<html><head/><body><p>Server PORT</p></body></html>"))
        self.port_in.setPlaceholderText(_translate("Connector", "Port:"))




if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    Connector = QtWidgets.QMainWindow()
    ui = Ui_Connector()
    ui.setupUi(Connector)
    Connector.show()
    sys.exit(app.exec_())

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

# Form implementation generated from reading ui file '.\assets\UI\Layout\ConnectorWindow.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Connector(object):
    def setupUi(self, Connector):
        Connector.setObjectName("Connector")
        Connector.setWindowModality(QtCore.Qt.ApplicationModal)
        Connector.resize(302, 368)
        Connector.setMinimumSize(QtCore.QSize(302, 368))
        Connector.setMaximumSize(QtCore.QSize(302, 368))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        Connector.setFont(font)
        Connector.setStyleSheet("")
        Connector.setIconSize(QtCore.QSize(32, 32))
        Connector.setDockNestingEnabled(False)
        Connector.setDockOptions(QtWidgets.QMainWindow.AllowTabbedDocks|QtWidgets.QMainWindow.AnimatedDocks|QtWidgets.QMainWindow.VerticalTabs)
        self.centralwidget = QtWidgets.QWidget(Connector)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.dbType = QtWidgets.QComboBox(self.centralwidget)
        self.dbType.setGeometry(QtCore.QRect(10, 14, 281, 40))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dbType.sizePolicy().hasHeightForWidth())
        self.dbType.setSizePolicy(sizePolicy)
        self.dbType.setMinimumSize(QtCore.QSize(101, 40))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.dbType.setFont(font)
        self.dbType.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.dbType.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.dbType.setAutoFillBackground(False)
        self.dbType.setEditable(False)
        self.dbType.setMaxCount(3)
        self.dbType.setIconSize(QtCore.QSize(32, 32))
        self.dbType.setFrame(False)
        self.dbType.setObjectName("dbType")
        self.dbType.addItem("")
        self.dbType.addItem("")
        self.dbType.addItem("")
        self.remember = QtWidgets.QCheckBox(self.centralwidget)
        self.remember.setEnabled(True)
        self.remember.setGeometry(QtCore.QRect(160, 255, 130, 40))
        self.remember.setMaximumSize(QtCore.QSize(130, 40))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(8)
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        self.remember.setFont(font)
        self.remember.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.remember.setAutoFillBackground(True)
        self.remember.setIconSize(QtCore.QSize(32, 32))
        self.remember.setCheckable(True)
        self.remember.setChecked(True)
        self.remember.setAutoRepeat(False)
        self.remember.setAutoExclusive(False)
        self.remember.setTristate(False)
        self.remember.setObjectName("remember")
        self.pass_in = QtWidgets.QLineEdit(self.centralwidget)
        self.pass_in.setGeometry(QtCore.QRect(10, 204, 281, 41))
        self.pass_in.setMinimumSize(QtCore.QSize(281, 41))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.pass_in.setFont(font)
        self.pass_in.setStyleSheet("padding:7;")
        self.pass_in.setText("")
        self.pass_in.setFrame(False)
        self.pass_in.setEchoMode(QtWidgets.QLineEdit.Password)
        self.pass_in.setCursorMoveStyle(QtCore.Qt.LogicalMoveStyle)
        self.pass_in.setClearButtonEnabled(False)
        self.pass_in.setObjectName("pass_in")
        self.connect = QtWidgets.QPushButton(self.centralwidget)
        self.connect.setGeometry(QtCore.QRect(10, 305, 281, 51))
        self.connect.setMinimumSize(QtCore.QSize(281, 51))
        self.connect.setMaximumSize(QtCore.QSize(281, 51))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(14)
        self.connect.setFont(font)
        self.connect.setStyleSheet("")
        self.connect.setAutoDefault(False)
        self.connect.setDefault(False)
        self.connect.setFlat(False)
        self.connect.setObjectName("connect")
        self.user_in = QtWidgets.QLineEdit(self.centralwidget)
        self.user_in.setGeometry(QtCore.QRect(10, 157, 281, 41))
        self.user_in.setMinimumSize(QtCore.QSize(281, 41))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.user_in.setFont(font)
        self.user_in.setStyleSheet("padding:7;")
        self.user_in.setText("")
        self.user_in.setFrame(False)
        self.user_in.setClearButtonEnabled(False)
        self.user_in.setObjectName("user_in")
        self.buffered = QtWidgets.QCheckBox(self.centralwidget)
        self.buffered.setEnabled(True)
        self.buffered.setGeometry(QtCore.QRect(10, 255, 140, 40))
        self.buffered.setMaximumSize(QtCore.QSize(140, 40))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(8)
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        self.buffered.setFont(font)
        self.buffered.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.buffered.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.buffered.setAutoFillBackground(True)
        self.buffered.setIconSize(QtCore.QSize(32, 32))
        self.buffered.setCheckable(True)
        self.buffered.setChecked(True)
        self.buffered.setAutoRepeat(False)
        self.buffered.setAutoExclusive(False)
        self.buffered.setTristate(False)
        self.buffered.setObjectName("buffered")
        self.host_in = QtWidgets.QLineEdit(self.centralwidget)
        self.host_in.setGeometry(QtCore.QRect(10, 60, 281, 41))
        self.host_in.setMinimumSize(QtCore.QSize(131, 41))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.host_in.setFont(font)
        self.host_in.setStyleSheet("padding:7;")
        self.host_in.setFrame(False)
        self.host_in.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.host_in.setClearButtonEnabled(False)
        self.host_in.setObjectName("host_in")
        self.port_in = QtWidgets.QLineEdit(self.centralwidget)
        self.port_in.setGeometry(QtCore.QRect(10, 110, 280, 41))
        self.port_in.setMinimumSize(QtCore.QSize(141, 41))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.port_in.setFont(font)
        self.port_in.setStyleSheet("padding:7;")
        self.port_in.setText("")
        self.port_in.setFrame(False)
        self.port_in.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.port_in.setClearButtonEnabled(False)
        self.port_in.setObjectName("port_in")
        Connector.setCentralWidget(self.centralwidget)

        self.retranslateUi(Connector)
        QtCore.QMetaObject.connectSlotsByName(Connector)
        Connector.setTabOrder(self.dbType, self.host_in)
        Connector.setTabOrder(self.host_in, self.port_in)
        Connector.setTabOrder(self.port_in, self.user_in)
        Connector.setTabOrder(self.user_in, self.pass_in)
        Connector.setTabOrder(self.pass_in, self.buffered)
        Connector.setTabOrder(self.buffered, self.remember)
        Connector.setTabOrder(self.remember, self.connect)

    def retranslateUi(self, Connector):
        _translate = QtCore.QCoreApplication.translate
        Connector.setWindowTitle(_translate("Connector", "SQL Connector"))
        self.dbType.setItemText(0, _translate("Connector", "MY SQL"))
        self.dbType.setItemText(1, _translate("Connector", "Microsoft Server"))
        self.dbType.setItemText(2, _translate("Connector", "Postgre SQL "))
        self.remember.setToolTip(_translate("Connector", "<html><head/><body><p>Trusted Connection</p></body></html>"))
        self.remember.setText(_translate("Connector", "Remember me"))
        self.pass_in.setToolTip(_translate("Connector", "<html><head/><body><p>Password</p></body></html>"))
        self.pass_in.setPlaceholderText(_translate("Connector", "Password:"))
        self.connect.setText(_translate("Connector", "CONNECT"))
        self.connect.setShortcut(_translate("Connector", "Enter"))
        self.user_in.setToolTip(_translate("Connector", "<html><head/><body><p>Username</p></body></html>"))
        self.user_in.setPlaceholderText(_translate("Connector", "User:"))
        self.buffered.setToolTip(_translate("Connector", "<html><head/><body><p>Buffered Connection</p></body></html>"))
        self.buffered.setText(_translate("Connector", "Buffered"))
        self.host_in.setToolTip(_translate("Connector", "<html><head/><body><p>Server / IP</p></body></html>"))
        self.host_in.setText(_translate("Connector", "localhost"))
        self.host_in.setPlaceholderText(_translate("Connector", "Server/IP:"))
        self.port_in.setToolTip(_translate("Connector", "<html><head/><body><p>Server PORT</p></body></html>"))
        self.port_in.setPlaceholderText(_translate("Connector", "Port:"))




if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    Connector = QtWidgets.QMainWindow()
    ui = Ui_Connector()
    ui.setupUi(Connector)
    Connector.show()
    sys.exit(app.exec_())
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\assets\UI\Layout\ConnectorWindow.ui' # # Created by: PyQt5 UI code generator 5.12.1 # # WARNING! All changes made in this file will be lost!