openai-sql/gui/connection.py
2023-05-03 11:29:44 +02:00

78 lines
3.5 KiB
Python

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\connection.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(249, 217)
self.label = QtWidgets.QLabel(Form)
self.label.setGeometry(QtCore.QRect(20, 10, 101, 16))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(Form)
self.label_2.setGeometry(QtCore.QRect(20, 40, 49, 16))
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(Form)
self.label_3.setGeometry(QtCore.QRect(20, 70, 61, 16))
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(Form)
self.label_4.setGeometry(QtCore.QRect(20, 100, 81, 16))
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(Form)
self.label_5.setGeometry(QtCore.QRect(20, 130, 61, 16))
self.label_5.setObjectName("label_5")
self.IP = QtWidgets.QLineEdit(Form)
self.IP.setGeometry(QtCore.QRect(100, 10, 131, 21))
self.IP.setText("")
self.IP.setObjectName("IP")
self.port = QtWidgets.QLineEdit(Form)
self.port.setGeometry(QtCore.QRect(100, 40, 131, 21))
self.port.setText("")
self.port.setObjectName("port")
self.username = QtWidgets.QLineEdit(Form)
self.username.setGeometry(QtCore.QRect(100, 70, 131, 21))
self.username.setText("")
self.username.setObjectName("username")
self.password = QtWidgets.QLineEdit(Form)
self.password.setGeometry(QtCore.QRect(100, 100, 131, 21))
self.password.setInputMethodHints(QtCore.Qt.ImhHiddenText|QtCore.Qt.ImhSensitiveData)
self.password.setObjectName("password")
self.database = QtWidgets.QLineEdit(Form)
self.database.setGeometry(QtCore.QRect(100, 130, 131, 21))
self.database.setObjectName("database")
self.TestConnection = QtWidgets.QPushButton(Form)
self.TestConnection.setEnabled(False)
self.TestConnection.setGeometry(QtCore.QRect(14, 160, 101, 24))
self.TestConnection.setObjectName("TestConnection")
self.saveButton = QtWidgets.QPushButton(Form)
self.saveButton.setEnabled(False)
self.saveButton.setGeometry(QtCore.QRect(130, 160, 101, 24))
self.saveButton.setObjectName("saveButton")
self.returnLabel = QtWidgets.QLabel(Form)
self.returnLabel.setGeometry(QtCore.QRect(20, 190, 211, 16))
self.returnLabel.setObjectName("returnLabel")
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
self.label.setText(_translate("Form", "IP"))
self.label_2.setText(_translate("Form", "Port"))
self.label_3.setText(_translate("Form", "Username"))
self.label_4.setText(_translate("Form", "Password"))
self.label_5.setText(_translate("Form", "Database"))
self.TestConnection.setText(_translate("Form", "Test Connection"))
self.saveButton.setText(_translate("Form", "Save"))
self.returnLabel.setText(_translate("Form", "Connection ... / Saved..."))