Exemple #1
0
class Ui_venPrincipal(object):
    def setupUi(self, venPrincipal):
        venPrincipal.setObjectName("venPrincipal")
        venPrincipal.resize(797, 471)
        self.centralwidget = QtWidgets.QWidget(venPrincipal)
        self.centralwidget.setObjectName("centralwidget")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(320, 30, 191, 41))
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setStyleSheet(
            "background-color: rgb(170, 255, 255);\n"
            "background-color: qlineargradient(spread:pad, x1:0.483, y1:0, x2:0.506, y2:0.625, stop:0 rgba(170, 255, 255, 255), stop:1 rgba(255, 255, 255, 255));"
        )
        self.label.setObjectName("label")
        self.lblDni_2 = QtWidgets.QLabel(self.centralwidget)
        self.lblDni_2.setGeometry(QtCore.QRect(60, 120, 31, 21))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.lblDni_2.setFont(font)
        self.lblDni_2.setObjectName("lblDni_2")
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(40, 80, 751, 20))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.editDni = QtWidgets.QTextEdit(self.centralwidget)
        self.editDni.setGeometry(QtCore.QRect(120, 120, 171, 21))
        self.editDni.setObjectName("editDni")
        self.lblapel = QtWidgets.QLabel(self.centralwidget)
        self.lblapel.setGeometry(QtCore.QRect(60, 160, 71, 16))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.lblapel.setFont(font)
        self.lblapel.setObjectName("lblapel")
        self.editApel = QtWidgets.QTextEdit(self.centralwidget)
        self.editApel.setGeometry(QtCore.QRect(120, 160, 251, 21))
        self.editApel.setObjectName("editApel")
        self.line_2 = QtWidgets.QFrame(self.centralwidget)
        self.line_2.setGeometry(QtCore.QRect(30, 270, 761, 16))
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.lblNome = QtWidgets.QLabel(self.centralwidget)
        self.lblNome.setGeometry(QtCore.QRect(420, 160, 47, 13))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.lblNome.setFont(font)
        self.lblNome.setObjectName("lblNome")
        self.editNome = QtWidgets.QTextEdit(self.centralwidget)
        self.editNome.setGeometry(QtCore.QRect(490, 160, 211, 21))
        self.editNome.setObjectName("editNome")
        self.btnAceptar = QtWidgets.QPushButton(self.centralwidget)
        self.btnAceptar.setGeometry(QtCore.QRect(310, 290, 75, 23))
        self.btnAceptar.setObjectName("btnAceptar")
        self.btnSalir = QtWidgets.QPushButton(self.centralwidget)
        self.btnSalir.setGeometry(QtCore.QRect(450, 290, 75, 23))
        self.btnSalir.setObjectName("btnSalir")
        self.lblSexo = QtWidgets.QLabel(self.centralwidget)
        self.lblSexo.setGeometry(QtCore.QRect(60, 250, 47, 13))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.lblSexo.setFont(font)
        self.lblSexo.setObjectName("lblSexo")
        self.rbtFem = QtWidgets.QRadioButton(self.centralwidget)
        self.rbtFem.setGeometry(QtCore.QRect(110, 250, 82, 17))
        self.rbtFem.setObjectName("rbtFem")
        self.rbtMasc = QtWidgets.QRadioButton(self.centralwidget)
        self.rbtMasc.setGeometry(QtCore.QRect(200, 250, 82, 17))
        self.rbtMasc.setObjectName("rbtMasc")
        self.lblSexo_2 = QtWidgets.QLabel(self.centralwidget)
        self.lblSexo_2.setGeometry(QtCore.QRect(320, 250, 111, 16))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.lblSexo_2.setFont(font)
        self.lblSexo_2.setObjectName("lblSexo_2")
        self.chkEfec = QtWidgets.QCheckBox(self.centralwidget)
        self.chkEfec.setGeometry(QtCore.QRect(440, 250, 61, 17))
        self.chkEfec.setObjectName("chkEfec")
        self.chkTar = QtWidgets.QCheckBox(self.centralwidget)
        self.chkTar.setGeometry(QtCore.QRect(520, 250, 61, 17))
        self.chkTar.setObjectName("chkTar")
        self.chkTrans = QtWidgets.QCheckBox(self.centralwidget)
        self.chkTrans.setGeometry(QtCore.QRect(600, 250, 91, 17))
        self.chkTrans.setObjectName("chkTrans")
        self.lblapel_2 = QtWidgets.QLabel(self.centralwidget)
        self.lblapel_2.setGeometry(QtCore.QRect(60, 200, 71, 16))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.lblapel_2.setFont(font)
        self.lblapel_2.setObjectName("lblapel_2")
        self.editApel_2 = QtWidgets.QTextEdit(self.centralwidget)
        self.editApel_2.setGeometry(QtCore.QRect(120, 200, 271, 21))
        self.editApel_2.setObjectName("editApel_2")
        self.lblProv = QtWidgets.QLabel(self.centralwidget)
        self.lblProv.setGeometry(QtCore.QRect(420, 200, 61, 16))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.lblProv.setFont(font)
        self.lblProv.setObjectName("lblProv")
        self.cmbProv = QtWidgets.QComboBox(self.centralwidget)
        self.cmbProv.setGeometry(QtCore.QRect(490, 200, 181, 22))
        self.cmbProv.setObjectName("cmbProv")
        venPrincipal.setCentralWidget(self.centralwidget)
        self.menuBar = Archivo(venPrincipal)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 797, 21))
        self.menuBar.setObjectName("menuBar")
        self.menuArchivo = QtWidgets.QMenu(self.menuBar)
        self.menuArchivo.setObjectName("menuArchivo")
        venPrincipal.setMenuBar(self.menuBar)
        self.statusbar = QtWidgets.QStatusBar(venPrincipal)
        self.statusbar.setObjectName("statusbar")
        venPrincipal.setStatusBar(self.statusbar)
        self.menuBar.addAction(self.menuArchivo.menuAction())

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

    def retranslateUi(self, venPrincipal):
        _translate = QtCore.QCoreApplication.translate
        venPrincipal.setWindowTitle(_translate("venPrincipal", "Proyecto Uno"))
        self.label.setText(_translate("venPrincipal", "XESTIÓN CLIENTES"))
        self.lblDni_2.setText(_translate("venPrincipal", "DNI: "))
        self.lblapel.setText(_translate("venPrincipal", "Apellidos:"))
        self.lblNome.setText(_translate("venPrincipal", "Nombre:"))
        self.btnAceptar.setText(_translate("venPrincipal", "Aceptar"))
        self.btnSalir.setText(_translate("venPrincipal", "Salir"))
        self.lblSexo.setText(_translate("venPrincipal", "Sexo:"))
        self.rbtFem.setText(_translate("venPrincipal", "Femenino"))
        self.rbtMasc.setText(_translate("venPrincipal", "Masculino"))
        self.lblSexo_2.setText(_translate("venPrincipal", "Métodos de Pago:"))
        self.chkEfec.setText(_translate("venPrincipal", "Efectivo"))
        self.chkTar.setText(_translate("venPrincipal", "Tarjeta"))
        self.chkTrans.setText(_translate("venPrincipal", "Transferencia"))
        self.lblapel_2.setText(_translate("venPrincipal", "Direccion:"))
        self.lblProv.setText(_translate("venPrincipal", "Provincia: "))
        self.menuArchivo.setTitle(_translate("venPrincipal", "Archivo"))
class Ui_venPrincipal(object):
    def setupUi(self, venPrincipal):
        venPrincipal.setObjectName("venPrincipal")
        venPrincipal.resize(861, 644)
        self.centralwidget = QtWidgets.QWidget(venPrincipal)
        self.centralwidget.setObjectName("centralwidget")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(340, 110, 171, 41))
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setStyleSheet("background-color: rgb(170, 255, 255);\n"
"background-color: qlineargradient(spread:pad, x1:0.483, y1:0, x2:0.506, y2:0.625, stop:0 rgba(170, 255, 255, 255), stop:1 rgba(255, 255, 255, 255));")
        self.label.setObjectName("label")
        self.lblDni_2 = QtWidgets.QLabel(self.centralwidget)
        self.lblDni_2.setGeometry(QtCore.QRect(110, 200, 31, 21))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.lblDni_2.setFont(font)
        self.lblDni_2.setObjectName("lblDni_2")
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(40, 170, 751, 20))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.editDni = QtWidgets.QTextEdit(self.centralwidget)
        self.editDni.setGeometry(QtCore.QRect(150, 200, 171, 21))
        self.editDni.setObjectName("editDni")
        self.lblapel = QtWidgets.QLabel(self.centralwidget)
        self.lblapel.setGeometry(QtCore.QRect(80, 270, 71, 16))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(True)
        font.setWeight(75)
        self.lblapel.setFont(font)
        self.lblapel.setObjectName("lblapel")
        self.editApel = QtWidgets.QTextEdit(self.centralwidget)
        self.editApel.setGeometry(QtCore.QRect(160, 270, 221, 21))
        self.editApel.setObjectName("editApel")
        self.line_2 = QtWidgets.QFrame(self.centralwidget)
        self.line_2.setGeometry(QtCore.QRect(40, 320, 761, 16))
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.lblNome = QtWidgets.QLabel(self.centralwidget)
        self.lblNome.setGeometry(QtCore.QRect(460, 270, 47, 13))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.lblNome.setFont(font)
        self.lblNome.setObjectName("lblNome")
        self.editNome = QtWidgets.QTextEdit(self.centralwidget)
        self.editNome.setGeometry(QtCore.QRect(520, 270, 211, 21))
        self.editNome.setObjectName("editNome")
        self.btnAceptar = QtWidgets.QPushButton(self.centralwidget)
        self.btnAceptar.setGeometry(QtCore.QRect(320, 380, 75, 23))
        self.btnAceptar.setObjectName("btnAceptar")
        self.btnSalir = QtWidgets.QPushButton(self.centralwidget)
        self.btnSalir.setGeometry(QtCore.QRect(480, 380, 75, 23))
        self.btnSalir.setObjectName("btnSalir")
        self.lblValidar = QtWidgets.QLabel(self.centralwidget)
        self.lblValidar.setGeometry(QtCore.QRect(340, 200, 41, 31))
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(10)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.lblValidar.setFont(font)
        self.lblValidar.setText("")
        self.lblValidar.setObjectName("lblValidar")
        venPrincipal.setCentralWidget(self.centralwidget)
        self.menuBar = Archivo(venPrincipal)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 861, 21))
        self.menuBar.setObjectName("menuBar")
        self.menuArchivo = QtWidgets.QMenu(self.menuBar)
        self.menuArchivo.setObjectName("menuArchivo")
        venPrincipal.setMenuBar(self.menuBar)
        self.statusbar = QtWidgets.QStatusBar(venPrincipal)
        self.statusbar.setObjectName("statusbar")
        venPrincipal.setStatusBar(self.statusbar)
        self.menuBar.addAction(self.menuArchivo.menuAction())

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

    def retranslateUi(self, venPrincipal):
        _translate = QtCore.QCoreApplication.translate
        venPrincipal.setWindowTitle(_translate("venPrincipal", "Proyecto Uno"))
        self.label.setText(_translate("venPrincipal", "XESTIÓN CLIENTES"))
        self.lblDni_2.setText(_translate("venPrincipal", "DNI: "))
        self.lblapel.setText(_translate("venPrincipal", "Apellidos:"))
        self.lblNome.setText(_translate("venPrincipal", "Nombre:"))
        self.btnAceptar.setText(_translate("venPrincipal", "Aceptar"))
        self.btnSalir.setText(_translate("venPrincipal", "Salir"))
        self.menuArchivo.setTitle(_translate("venPrincipal", "Archivo"))