Exemplo n.º 1
0
	def __init__(self, valores):
		nombre = "HVLT-R"
		baremos = (pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_Hopkins_Normal.csv')), 
                    pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_Hopkins_Diferido.csv')),
                    pd.read_csv(APPCTXT().get_resource('./Baremos/Tabla_Conversión_Psicométrica_Completa.csv')))
		campos = ("M.I.", "M.D.")

		super(HopkinsPrueba,self).__init__(nombre, valores, baremos, campos)
	def __init__(self, valores):
		nombre = "TMT"
		baremos = (pd.read_csv(APPCTXT().get_resource('./Baremos/TablaTMT.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/EscolaridadTMTA.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/EscolaridadTMTB.csv')))
		campos = ("A", "B")

		super(TMTPrueba,self).__init__(nombre, valores, baremos, campos)
Exemplo n.º 3
0
	def __init__(self, valores):
		nombre = "BussYPerry"
		baremos = (pd.read_csv(APPCTXT().get_resource('./Baremos/TablaTMT.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/EscolaridadTMTA.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/EscolaridadTMTB.csv')))
		campos = ("agFis", "agVer", "ira", "hos")

		super(BussyPerryPrueba,self).__init__(nombre, valores, baremos, campos)
    def __init__(self, valores):
        nombre = "LNS"
        baremos = (pd.read_csv(
            APPCTXT().get_resource('./Baremos/TablaLNS.csv')),
                   pd.read_csv(
                       APPCTXT().get_resource('./Baremos/EscolaridadLNS.csv')))
        campos = ("I", "T")

        super(LNSPrueba, self).__init__(nombre, valores, baremos, campos)
    def __init__(self, valores):
        nombre = "DIGITOS"
        baremos = (
            pd.read_csv(APPCTXT().get_resource('./Baremos/Digitos.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/EscolaridadDigitos.csv')))
        campos = ("DD", "DI")

        super(DigitosPrueba, self).__init__(nombre, valores, baremos, campos)
Exemplo n.º 6
0
    def __init__(self, valores):
        nombre = "FLUIDEZ"
        baremos = (pd.read_csv(
            APPCTXT().get_resource('./Baremos/TablaFluidezVerbal.csv')),
                   pd.read_csv(APPCTXT().get_resource(
                       './Baremos/EscolaridadFluidezVerbal.csv')))
        campos = ("P", "A")

        super(FluidezVerbalPrueba, self).__init__(nombre, valores, baremos,
                                                  campos)
    def __init__(self, valores):
        nombre = "EMD"
        baremos = (
            pd.read_csv(APPCTXT().get_resource('./Baremos/TablaTMT.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/EscolaridadTMTA.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/EscolaridadTMTB.csv')))
        campos = ("ME", "MICO", "MIE", "MIA", "MICU", "Amotivacion", "MID")

        super(EMDPrueba, self).__init__(nombre, valores, baremos, campos)
Exemplo n.º 8
0
    def __init__(self, valores):
        nombre = "D2"
        baremos = (
            pd.read_csv(APPCTXT().get_resource('./Baremos/TablaD2_15-16.csv')),
            pd.read_csv(APPCTXT().get_resource('./Baremos/TablaD2_17-18.csv')),
            pd.read_csv(APPCTXT().get_resource('./Baremos/TablaD2_19-23.csv')),
            pd.read_csv(APPCTXT().get_resource('./Baremos/TablaD2_24-29.csv')),
            pd.read_csv(APPCTXT().get_resource('./Baremos/TablaD2_30-39.csv')))
        campos = ("TR", "TA", "O", "C", "TOT", "CON", "VAR"
                  )  #TOT y CON son campos que se calculan en este script

        super(D2Prueba, self).__init__(nombre, valores, baremos, campos)
Exemplo n.º 9
0
	def __init__(self, mainWindow, reporteModel=None):
		QtWidgets.QWidget.__init__(self)
		self.reporteModel = reporteModel
		self.mainWindow = mainWindow

		self.hasSaveCSV = False
		self.csvDialogHasShown = False

		tmpdir = os.path.join(tempfile.gettempdir(), "synapps")
		if not os.path.exists(tmpdir):
			os.makedirs(tmpdir)
		# tempUrl = QUrl(QDir.currentPath()+"/vistas/Reporte/reporte.html")
		# tempUrl = tempUrl.toString()
		# imageUrl = QUrl(QDir.currentPath()+"/vistas/Reporte/reporte.png")
		# imageUrl = imageUrl.toString()
		# logoUrl = QUrl(QDir.currentPath()+"/vistas/Reporte/logoReporte.png")
		tempUrl = os.path.join(tmpdir, "reporte.html")
		cssUrl = APPCTXT().get_resource("./vistas/Reporte/reporte.css")
		copyfile(cssUrl, os.path.join(tmpdir, 'reporte.css'))
		imageUrl = os.path.join(tmpdir, 'reporte.png')
		# imageUrl = APPCTXT().get_resource("./vistas/Reporte/reporte.png")
		# copyfile(imageUrl, os.path.join(tmpdir, 'reporte.png'))
		logoUrl = APPCTXT().get_resource("./vistas/Reporte/logoReporte.png")
		copyfile(logoUrl, os.path.join(tmpdir, 'logoReporte.png'))
		print(tmpdir)

		self.url = tempUrl
		self.image = imageUrl
		self.logo = logoUrl
		self.reporteView = None
		self.pruebayLabels = {
			"FLUIDEZ":[('RV', 'TV')],
			"DENOM":[('TT', 'ET')],
			"COMP V":[('IT', 'M')],
			"BVMT-R":[('C', 'I')],
			"TMT":[('C', 'P')],
			"ABS":['M.D.'],
			"DIGITOS":[('M.I.', 'VAR')],
			"SDMT":['CON'],
			"LNS":[('TOT', 'C')],
			"D2":[('O', 'TA', 'TR', 'T', 'I', 'C', 'DI')],
			"HVLT-R":[('DD', 'ABS')],
			"STROOP":[('B', 'A', 'Dif')],
			"Denominación":[('T', 'MVCt', 'MVC', 'DVt', 'DV', 'A', 'P')]
		}
		self.csvHeaders = ["nombreExaminado","id","fecha","genero","edad","fechaNacimiento",
			"lateralidad","nombreExaminador","carrera","semestre","educacion","equipo","deporte",
			'RV', 'TV', 'TT', 'ET', 'IT', 'M', 'C', 'I', 'C', 'P', 'M.D.', 'M.I.', 'VAR', 'CON', 'TOT', 'C', 'O',
			'TA', 'TR', 'T', 'I', 'C', 'DI', 'DD', 'ABS', 'B', 'A', 'Dif', 'T', 'MVCt', 'MVC', 'DVt', 'DV', 'A', 'P']
		self.escalares = []
		self.escalaresLabel = []
		self.loadReporte()
    def __init__(self, valores):
        nombre = "COMP V"
        baremos = (pd.read_csv(
            APPCTXT().get_resource('./Baremos/MaterialVerbalComplejo.csv')))
        campos = ("MVC", "MVCt")

        super(MVCPrueba, self).__init__(nombre, valores, baremos, campos)
 def __init__(self, valores):
     nombre = "PSQI"
     baremos = pd.read_csv(
         APPCTXT().get_resource('./Baremos/Pittsburgh.csv'))
     campos = ("1.", "2.", "3.", "4.", "5.", "6.", "7.", "total")
     super(PittsburghPrueba, self).__init__(nombre, valores, baremos,
                                            campos)
    def __init__(self, valores):
        nombre = "SCL-90"
        baremos = (pd.read_csv(
            APPCTXT().get_resource('./Baremos/SCL90R_MUJERES_NC_TABLA.csv')),
                   pd.read_csv(APPCTXT().get_resource(
                       './Baremos/SCL90R_VARONES_NC_TABLA.csv')),
                   pd.read_csv(APPCTXT().get_resource(
                       './Baremos/SCL90R_MUJERES_PSIQUIATRICA_TABLA.csv')),
                   pd.read_csv(APPCTXT().get_resource(
                       './Baremos/SCL90R_VARONES_PSIQUIATRICA_TABLA.csv')),
                   pd.read_csv(APPCTXT().get_resource(
                       './Baremos/SCL90R_PSICOSOMATICA_TABLA.csv')))
        campos = ("SO", "OB", "IN", "DE", "AN", "HO", "FO", "PA", "PSI", "GSI",
                  "PST", "PSDI")

        super(SCL90Prueba, self).__init__(nombre, valores, baremos, campos)
    def __init__(self, valores):
        nombre = "DENOM"
        baremos = (pd.read_csv(
            APPCTXT().get_resource('./Baremos/DenominacionImagenes.csv')))
        campos = ("DV", "DVt")

        super(DenominacionPrueba, self).__init__(nombre, valores, baremos,
                                                 campos)
Exemplo n.º 14
0
def main():
    """
     Método principal en la ejecución del programa
    """
    # app = QtWidgets.QApplication(sys.argv)

    # cssUrl = QUrl(QDir.currentPath()+"/app.css").toString()
    cssUrl = APPCTXT().get_resource("app.css")
    with open(cssUrl, 'r') as f:
        APPCTXT().app.setStyleSheet(f.read())
        # app.setStyleSheet(f.read())
    # cssUrl = QUrl(QDir.currentPath()+"/app.css").toString()
    # app.setStyleSheet(open('C:\\Users\\usuario\\Desktop\\reportes-neurociencias\\src\\main\\python\\app.css').read())
    # app.setStyleSheet(open(cssUrl).read())
    # app = QtWidgets.QApplication(sys.argv)
    # APPCTXT.setStyleSheet(open('app.css').read())
    masterController = MasterController()
    masterController.showMainWindow()
    sys.exit(APPCTXT().app.exec_())
	def __init__(self, valores):
		nombre = "BSI-18"
		baremos = (pd.read_csv(APPCTXT().get_resource('./Baremos/BSI18_VARONES_TRABAJADORES_ACTIVO.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/BSI18_MUJERES_TRABAJADORES_ACTIVO.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/BSI18_MUJERES_Y_VARONES_TRABAJADORES_ACTIVO.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/BSI18_VARONES_PACIENTES_CON_CANCER.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/BSI18_MUJERES_PACIENTES_CON_CANCER.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/BSI18_MUJERES_Y_VARONES_PACIENTES_CON_CANCER.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/BSI18_PRERCENTILES_EQUIVALENTES_PUNTUACIONES_T.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/Tabla_Conversión_Psicométrica_Completa.csv')))
		campos = ("DIRECTA", "SOM", "DEP", "ANS", "IGS")

		super(BSI18Prueba,self).__init__(nombre, valores, baremos, campos)
Exemplo n.º 16
0
    def __init__(self, valores):
        nombre = "BVMT-R"
        # baremos = (pd.read_csv('./Baremos/Baremo_BVMT-R-1.csv'),
        #             pd.read_csv('./Baremos/Baremo_BVMT-R-2.csv'),
        #             pd.read_csv('./Baremos/Baremo_BVMT-R-3.csv'),
        #             pd.read_csv('./Baremos/Baremo_BVMT-R-4.csv'),
        #             pd.read_csv('./Baremos/Baremo_BVMT-R-5.csv'),
        #             pd.read_csv('./Baremos/Tabla_Conversión_Psicométrica_Completa.csv'))
        baremos = (
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_BVMT-R-1.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_BVMT-R-2.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_BVMT-R-3.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_BVMT-R-4.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_BVMT-R-5.csv')),
            pd.read_csv(APPCTXT().get_resource(
                './Baremos/Tabla_Conversión_Psicométrica_Completa.csv')))
        campos = ("T", "Dif")

        super(MemoriaVisoespaciaPrueba, self).__init__(nombre, valores,
                                                       baremos, campos)
Exemplo n.º 17
0
 def __init__(self, valores):
     nombre = "Denominación"
     baremos = (pd.read_csv(
         APPCTXT().get_resource('./Baremos/Baremo_TOL.csv')),
                pd.read_csv(APPCTXT().get_resource(
                    './Baremos/Baremo_TOL_VT_VR_16-19a.csv')),
                pd.read_csv(APPCTXT().get_resource(
                    './Baremos/Baremo_TOL_VT_VR_20-29a.csv')),
                pd.read_csv(APPCTXT().get_resource(
                    './Baremos/Baremo_TOL_VT_VR_30-39a.csv')),
                pd.read_csv(
                    APPCTXT().get_resource('./Baremos/EscolaridadTOL.csv')),
                pd.read_csv(APPCTXT().get_resource(
                    './Baremos/Baremo_TOL_MovimientosTotales.csv')))
     campos = ("C", "M", "IT", "ET", "TT", "TV", "RV")
     super(TOLPrueba, self).__init__(nombre, valores, baremos, campos)
Exemplo n.º 18
0
    def __init__(self, valores):
        nombre = "STROOP"
        baremos = (pd.read_csv(
            APPCTXT().get_resource('./Baremos/Baremo_Stroop.csv')))
        campos = ("P", "C", "I")
        super(StroopPrueba, self).__init__(nombre, valores, baremos, campos)

        def calcularPERP(self, datos):
            """
            Método que es empleado para calcular la Puntuación Escalar(PE), como la Percentil(RP)
            Args:
            datos: Lista de información relevante del reporte para calcular los valores de PE y RP (escolaridad, edad)
            """
            edad = datos
            stroopData = self.baremos[0]

            P = self.valores[0]
            C = self.valores[1]
            PC = self.valores[2]

            if P <= 71:
                P = '71'
            else:
                P = str(P)
Exemplo n.º 19
0
    def __init__(self, valores):
        nombre = "LNS"
        baremos = (
            pd.read_csv(APPCTXT().get_resource('./Baremos/TablaLNS.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/EscolaridadLNS.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_50-56.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_57-59.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_60-62.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_63-65.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_66-68.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_69-71.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_72-74.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_75-77.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_78-80.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_LNS_81-90.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Escolaridad_LNS_li.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Escolaridad_LNS_rs.csv')))
        campos = ("I", "T")

        super(LNSPrueba, self).__init__(nombre, valores, baremos, campos)
Exemplo n.º 20
0
    def setupUi(self, Form, url):
        """
         Método empleado para especificar el contenido de la Interfáz gráfica, es generado por pyuic5.
         Args:
          Form: Ventana en la que se deplegará la interfáz gráfica (es un tipo de dato QtWidget.QWidget) 
        """
        Form.setObjectName("Form")
        Form.resize(800, 598)
        self.verticalLayoutWidget = QtWidgets.QWidget(Form)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(220, 0, 581, 541))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lblLogo = QtWidgets.QLabel(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lblLogo.sizePolicy().hasHeightForWidth())
        self.lblLogo.setSizePolicy(sizePolicy)
        self.lblLogo.setMaximumSize(QtCore.QSize(1697/3.5, 312/3.5))
        self.lblLogo.setLineWidth(1)
        self.lblLogo.setText("")
        self.lblLogo.setPixmap(QtGui.QPixmap(APPCTXT().get_resource("logo3.png")))
        self.lblLogo.setScaledContents(True)
        self.lblLogo.setAlignment(QtCore.Qt.AlignCenter)
        self.lblLogo.setObjectName("lblLogo")
        self.horizontalLayout.addWidget(self.lblLogo)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_4.setToolTip("")
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)



        self.webEngineWidget = QWebEngineView(self.verticalLayoutWidget)
        self.webEngineWidget.setObjectName("webEngineWidget")
        self.webEngineWidget.setMinimumSize(QtCore.QSize(0, 381))
        #url = QUrl.fromLocalFile(QDir.currentPath()+"/Reporte/reporte.html")
        urlReporte = QUrl.fromLocalFile(url)
        self.webEngineWidget.load(urlReporte)
        self.verticalLayout_2.addWidget(self.webEngineWidget)


        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        
        self.pbStart = QtWidgets.QPushButton(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pbStart.sizePolicy().hasHeightForWidth())
        self.pbStart.setSizePolicy(sizePolicy)
        self.pbStart.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.pbStart.setObjectName("pbStart")
        self.horizontalLayout_2.addWidget(self.pbStart)

        self.pdSaveCsv = QtWidgets.QPushButton(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pdSaveCsv.sizePolicy().hasHeightForWidth())
        self.pdSaveCsv.setSizePolicy(sizePolicy)
        self.pdSaveCsv.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.pdSaveCsv.setObjectName("pdSaveCsv")
        self.horizontalLayout_2.addWidget(self.pdSaveCsv)

        self.pbRestart = QtWidgets.QPushButton(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pbRestart.sizePolicy().hasHeightForWidth())
        self.pbRestart.setSizePolicy(sizePolicy)
        self.pbRestart.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.pbRestart.setObjectName("pbRestart")
        self.horizontalLayout_2.addWidget(self.pbRestart)

        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 5)
        self.verticalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout.setStretch(0, 1)
        self.verticalLayout.setStretch(0, 0)
        self.lWVistas = QtWidgets.QListWidget(Form)
        self.lWVistas.setGeometry(QtCore.QRect(0, 90, 221, 451))
        self.lWVistas.setObjectName("lWVistas")

        self.progressBar = QtWidgets.QProgressBar(Form)
        self.progressBar.setGeometry(QtCore.QRect(127, 560, 601, 23))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
    def __init__(self, valores):
        nombre = "TMT"
        baremos = (
            pd.read_csv(APPCTXT().get_resource('./Baremos/TablaTMT.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/EscolaridadTMTA.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/EscolaridadTMTB.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_50-56.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_57-59.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_60-62.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_63-65.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_66-68.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_69-71.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_72-74.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_75-77.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_78-80.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_TMT_81-90.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Escolaridad_TMT_pa.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Escolaridad_TMT_pb.csv')))
        campos = ("A", "B")

        super(TMTPrueba, self).__init__(nombre, valores, baremos, campos)
    def setupUi(self, Form):
        """
         Método empleado para especificar el contenido de la Interfáz gráfica, es generado por pyuic5.
         Args:
          Form: Ventana en la que se deplegará la interfáz gráfica (es un tipo de dato QtWidget.QWidget) 
        """
        Form.setObjectName("Form")
        Form.resize(800, 598)
        self.verticalLayoutWidget = QtWidgets.QWidget(Form)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(220, 0, 581, 541))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lblLogo = QtWidgets.QLabel(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lblLogo.sizePolicy().hasHeightForWidth())
        self.lblLogo.setSizePolicy(sizePolicy)
        self.lblLogo.setMaximumSize(QtCore.QSize(1697/5, 312/5))
        self.lblLogo.setLineWidth(1)
        self.lblLogo.setText("")
        self.lblLogo.setPixmap(QtGui.QPixmap(APPCTXT().get_resource("logo3.png")))
        self.lblLogo.setScaledContents(True)
        self.lblLogo.setAlignment(QtCore.Qt.AlignCenter)
        self.lblLogo.setObjectName("lblLogo")
        self.horizontalLayout.addWidget(self.lblLogo)
        # self.label = QtWidgets.QLabel(self.verticalLayoutWidget)
        # self.label.setAlignment(QtCore.Qt.AlignCenter)
        # self.label.setObjectName("label")
        # self.horizontalLayout.addWidget(self.label)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_4.setToolTip("")
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setContentsMargins(7, -1, 7, -1)
        self.formLayout.setObjectName("formLayout")
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
        self.label_10 = QtWidgets.QLabel(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setObjectName("label_10")
        self.formLayout.setWidget(
            0, QtWidgets.QFormLayout.LabelRole, self.label_10)
        self.leName = QtWidgets.QLineEdit(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.leName.sizePolicy().hasHeightForWidth())
        self.leName.setSizePolicy(sizePolicy)
        self.leName.setObjectName("leName")
        self.formLayout.setWidget(
            0, QtWidgets.QFormLayout.FieldRole, self.leName)
        self.label_11 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_11.setObjectName("label_11")
        self.formLayout.setWidget(
            1, QtWidgets.QFormLayout.LabelRole, self.label_11)
        self.leId = QtWidgets.QLineEdit(self.verticalLayoutWidget)
        self.leId.setObjectName("leId")
        self.formLayout.setWidget(
            1, QtWidgets.QFormLayout.FieldRole, self.leId)
        self.label_3 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(
            2, QtWidgets.QFormLayout.LabelRole, self.label_3)
        self.leExaminer = QtWidgets.QLineEdit(self.verticalLayoutWidget)
        self.leExaminer.setObjectName("leExaminer")
        self.formLayout.setWidget(
            2, QtWidgets.QFormLayout.FieldRole, self.leExaminer)
        self.label_8 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_8.setObjectName("label_8")
        self.formLayout.setWidget(
            3, QtWidgets.QFormLayout.LabelRole, self.label_8)

        ageMin = 15
        ageMax = 49
        self.sbAge = QtWidgets.QSpinBox(self.verticalLayoutWidget)
        self.sbAge.setObjectName("sbAge")
        self.sbAge.setRange(ageMin, ageMax)
        self.sbAge.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(
            3, QtWidgets.QFormLayout.FieldRole, self.sbAge)
        self.label_9 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_9.setObjectName("label_9")
        self.formLayout.setWidget(
            4, QtWidgets.QFormLayout.LabelRole, self.label_9)
        self.sbEscolaridad = QtWidgets.QSpinBox(self.verticalLayoutWidget)
        self.sbEscolaridad.setObjectName("sbEscolaridad")
        self.sbEscolaridad.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(
            4, QtWidgets.QFormLayout.FieldRole, self.sbEscolaridad)
        self.label_12 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_12.setObjectName("label_12")
        self.formLayout.setWidget(
            5, QtWidgets.QFormLayout.LabelRole, self.label_12)
        self.cbSexo = QtWidgets.QComboBox(self.verticalLayoutWidget)
        self.cbSexo.setEnabled(True)
        self.cbSexo.setEditable(False)
        self.cbSexo.setObjectName("cbSexo")
        self.cbSexo.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(
            5, QtWidgets.QFormLayout.FieldRole, self.cbSexo)
        self.label_2 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(
            6, QtWidgets.QFormLayout.LabelRole, self.label_2)

        fechaActual = QtCore.QDate.currentDate()
        fechaMinYear = fechaActual.year() - ageMin
        fechaMinimaNacimiento = QtCore.QDate(fechaMinYear, 12, 31)

        fechaMaxYear = fechaActual.year() - ageMax
        fechaMaximaNacimiento = QtCore.QDate(fechaMaxYear, 1, 1)

        self.deFechaNacimiento = QtWidgets.QDateEdit(self.verticalLayoutWidget)
        self.deFechaNacimiento.setObjectName("deFechaNacimiento")
        self.deFechaNacimiento.setDisplayFormat("dd/MMMM/yyyy")
        self.deFechaNacimiento.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.deFechaNacimiento.setDateRange(
            fechaMaximaNacimiento, fechaMinimaNacimiento)

        dateToShow = QtCore.QDate(fechaMinYear, 1, 1)
        self.deFechaNacimiento.setDate(dateToShow)

        self.formLayout.setWidget(
            6, QtWidgets.QFormLayout.FieldRole, self.deFechaNacimiento)

        self.label_5 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_5.setObjectName("label_5")
        self.formLayout.setWidget(
            7, QtWidgets.QFormLayout.LabelRole, self.label_5)
        self.cbLateralidad = QtWidgets.QComboBox(self.verticalLayoutWidget)
        self.cbLateralidad.setEnabled(True)
        self.cbLateralidad.setEditable(False)
        self.cbLateralidad.setObjectName("cbLateralidad")
        self.cbLateralidad.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(
            7, QtWidgets.QFormLayout.FieldRole, self.cbLateralidad)
        self.label_6 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_6.setObjectName("label_6")
        self.formLayout.setWidget(
            8, QtWidgets.QFormLayout.LabelRole, self.label_6)

        self.deFecha = QtWidgets.QDateEdit(self.verticalLayoutWidget)
        self.deFecha.setObjectName("deFecha")
        self.deFecha.setDisplayFormat("dd/MMMM/yyyy")
        self.deFecha.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(
            8, QtWidgets.QFormLayout.FieldRole, self.deFecha)

        self.label_7 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_7.setObjectName("label_7")
        self.formLayout.setWidget(
            9, QtWidgets.QFormLayout.LabelRole, self.label_7)
        self.leCarrera = QtWidgets.QLineEdit(self.verticalLayoutWidget)
        self.leCarrera.setObjectName("leCarrera")
        self.formLayout.setWidget(
            9, QtWidgets.QFormLayout.FieldRole, self.leCarrera)
        self.label_13 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_13.setObjectName("label_13")
        self.formLayout.setWidget(
            10, QtWidgets.QFormLayout.LabelRole, self.label_13)
        self.sbSemestre = QtWidgets.QSpinBox(self.verticalLayoutWidget)
        self.sbSemestre.setObjectName("sbSemestre")
        self.sbSemestre.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(
            10, QtWidgets.QFormLayout.FieldRole, self.sbSemestre)
        self.label_14 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_14.setObjectName("label_14")
        self.formLayout.setWidget(
            11, QtWidgets.QFormLayout.LabelRole, self.label_14)
        self.leEquipo = QtWidgets.QLineEdit(self.verticalLayoutWidget)
        self.leEquipo.setObjectName("leEquipo")
        self.formLayout.setWidget(
            11, QtWidgets.QFormLayout.FieldRole, self.leEquipo)
        self.label_15 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_15.setObjectName("label_15")
        self.formLayout.setWidget(
            12, QtWidgets.QFormLayout.LabelRole, self.label_15)
        self.leDeporte = QtWidgets.QLineEdit(self.verticalLayoutWidget)
        self.leDeporte.setObjectName("leDeporte")
        self.formLayout.setWidget(
            12, QtWidgets.QFormLayout.FieldRole, self.leDeporte)
        self.verticalLayout_2.addLayout(self.formLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pbStart = QtWidgets.QPushButton(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pbStart.sizePolicy().hasHeightForWidth())
        self.pbStart.setSizePolicy(sizePolicy)
        self.pbStart.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.pbStart.setObjectName("pbStart")
        self.horizontalLayout_2.addWidget(self.pbStart)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 8)
        self.verticalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout.setStretch(0, 6)
        self.verticalLayout.setStretch(0, 0)
        self.lWVistas = QtWidgets.QListWidget(Form)
        self.lWVistas.setGeometry(QtCore.QRect(0, 90, 221, 451))
        self.lWVistas.setObjectName("lWVistas")

        self.progressBar = QtWidgets.QProgressBar(Form)
        self.progressBar.setGeometry(QtCore.QRect(127, 560, 601, 23))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Exemplo n.º 23
0
    def setupUi(self, Form):
        """
         Método empleado para especificar el contenido de la Interfáz gráfica, es generado por pyuic5.
         Args:
          Form: Ventana en la que se deplegará la interfáz gráfica (es un tipo de dato QtWidget.QWidget) 
        """
        super().setupUI(Form)
        Form.setObjectName("Form")
        Form.resize(800, 598)
        self.verticalLayoutWidget = QtWidgets.QWidget(Form)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(220, 0, 581, 541))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lblLogo = QtWidgets.QLabel(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lblLogo.sizePolicy().hasHeightForWidth())
        self.lblLogo.setSizePolicy(sizePolicy)
        self.lblLogo.setMaximumSize(QtCore.QSize(1697 / 3.5, 312 / 3.5))
        self.lblLogo.setLineWidth(1)
        self.lblLogo.setText("")
        self.lblLogo.setPixmap(
            QtGui.QPixmap(APPCTXT().get_resource("logo3.png")))
        self.lblLogo.setScaledContents(True)
        self.lblLogo.setAlignment(QtCore.Qt.AlignCenter)
        self.lblLogo.setObjectName("lblLogo")
        self.horizontalLayout.addWidget(self.lblLogo)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_4.setToolTip("")
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading
                                         | QtCore.Qt.AlignLeft
                                         | QtCore.Qt.AlignVCenter)
        self.formLayout.setContentsMargins(7, -1, 7, -1)
        self.formLayout.setObjectName("formLayout")
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.ExpandingFieldsGrow)

        self.label_8 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_8.setObjectName("label_8")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label_8)
        self.sbTMTA = QtWidgets.QSpinBox(self.verticalLayoutWidget)
        self.sbTMTA.setObjectName("sbTMTA")
        self.sbTMTA.setRange(9, 45)
        self.sbTMTA.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding,
                                  QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.sbTMTA)
        self.label_9 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_9.setObjectName("label_9")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.label_9)
        self.sbTMTB = QtWidgets.QSpinBox(self.verticalLayoutWidget)
        self.sbTMTB.setObjectName("sbTMTB")
        self.sbTMTB.setRange(5, 25)
        self.sbTMTB.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding,
                                  QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.sbTMTB)

        self.label_10 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_10.setObjectName("label_10")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                  self.label_10)
        self.sbTMTC = QtWidgets.QSpinBox(self.verticalLayoutWidget)
        self.sbTMTC.setObjectName("sbTMTC")
        self.sbTMTC.setRange(11, 31)
        self.sbTMTC.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding,
                                  QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                  self.sbTMTC)

        self.label_11 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_11.setObjectName("label_11")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                  self.label_11)
        self.sbTMTD = QtWidgets.QSpinBox(self.verticalLayoutWidget)
        self.sbTMTD.setObjectName("sbTMTD")
        self.sbTMTD.setRange(8, 40)
        self.sbTMTD.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding,
                                  QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                  self.sbTMTD)

        self.verticalLayout_2.addLayout(self.formLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pbStart = QtWidgets.QPushButton(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pbStart.sizePolicy().hasHeightForWidth())
        self.pbStart.setSizePolicy(sizePolicy)
        self.pbStart.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.pbStart.setObjectName("pbStart")
        self.horizontalLayout_2.addWidget(self.pbStart)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 5)
        self.verticalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout.setStretch(0, 1)
        self.verticalLayout.setStretch(0, 0)
        self.lWVistas = QtWidgets.QListWidget(Form)
        self.lWVistas.setGeometry(QtCore.QRect(0, 90, 221, 451))
        self.lWVistas.setObjectName("lWVistas")

        self.progressBar = QtWidgets.QProgressBar(Form)
        self.progressBar.setGeometry(QtCore.QRect(127, 560, 601, 23))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
    def __init__(self, valores):
        nombre = "DIGITOS"
        baremos = (
            pd.read_csv(APPCTXT().get_resource('./Baremos/Digitos.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/EscolaridadDigitos.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_50-56.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_57-59.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_60-62.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_63-65.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_66-68.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_69-71.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_72-74.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_75-77.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_78-80.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Digit_81-90.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Escolaridad_Digits_f.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Escolaridad_Digits_b.csv')))
        campos = ("DD", "DI")

        super(DigitosPrueba, self).__init__(nombre, valores, baremos, campos)
Exemplo n.º 25
0
 def __init__(self, valores):
     nombre = "Torre de Londres"
     baremos = (pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_VT_VR_16-19a.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_VT_VR_20-29a.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_VT_VR_30-39a.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/EscolaridadTOL.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_MovimientosTotales.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_50-56.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_57-59.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_60-62.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_63-65.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_66-68.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_69-71.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_72-74.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_75-77.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_78-80.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_TOL_81-90.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Escolaridad_TOL_correct.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Escolaridad_TOL_mov.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Escolaridad_TOL_time.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Escolaridad_TOL_exec.csv')),
                 pd.read_csv(APPCTXT().get_resource('./Baremos/Escolaridad_TOL_solve.csv')))
     campos = ("C", "M", "IT", "ET", "TT", "TV", "RV")
     super(TOLPrueba,self).__init__(nombre, valores, baremos, campos)
    def __init__(self, valores):
        nombre = "STROOP"
        baremos = [
            pd.read_csv(APPCTXT().get_resource('./Baremos/Baremo_Stroop.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_50-56.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_57-59.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_60-62.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_63-65.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_66-68.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_69-71.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_72-74.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_75-77.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_78-80.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Baremo_Stroop_81-90.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Escolaridad_Stroop_p.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Escolaridad_Stroop_c.csv')),
            pd.read_csv(
                APPCTXT().get_resource('./Baremos/Escolaridad_Stroop_pc.csv'))
        ]
        campos = ("P", "C", "I")
        super(StroopPrueba, self).__init__(nombre, valores, baremos, campos)

        def calcularPERP(self, datos):
            """
            Método que es empleado para calcular la Puntuación Escalar(PE), como la Percentil(RP)
            Args:
            datos: Lista de información relevante del reporte para calcular los valores de PE y RP (escolaridad, edad)
            """
            edad = datos
            stroopData = self.baremos[0]

            P = self.valores[0]
            C = self.valores[1]
            PC = self.valores[2]

            if P <= 71:
                P = '71'
            else:
                P = P
Exemplo n.º 27
0
    def setupUi(self, Form):
        """
         Método empleado para especificar el contenido de la Interfáz gráfica, es generado por pyuic5.
         Args:
          Form: Ventana en la que se deplegará la interfáz gráfica (es un tipo de dato QtWidget.QWidget) 
        """
        Form.setObjectName("Form")
        Form.resize(800, 598)
        self.verticalLayoutWidget = QtWidgets.QWidget(Form)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(220, 0, 581, 541))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lblLogo = QtWidgets.QLabel(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lblLogo.sizePolicy().hasHeightForWidth())
        self.lblLogo.setSizePolicy(sizePolicy)
        self.lblLogo.setMaximumSize(QtCore.QSize(1697/3.5, 312/3.5))
        self.lblLogo.setLineWidth(1)
        self.lblLogo.setText("")
        self.lblLogo.setPixmap(QtGui.QPixmap(APPCTXT().get_resource("logo3.png")))
        self.lblLogo.setScaledContents(True)
        self.lblLogo.setAlignment(QtCore.Qt.AlignCenter)
        self.lblLogo.setObjectName("lblLogo")
        self.horizontalLayout.addWidget(self.lblLogo)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_4.setToolTip("")
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.formLayout.setContentsMargins(7, -1, 7, -1)
        self.formLayout.setObjectName("formLayout")
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)

        self.label_8 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_8.setObjectName("label_8")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_8)
        self.dsbSOM = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbSOM.setObjectName("dsbSOM")
        self.dsbSOM.setRange(0.00,4.00)
        self.dsbSOM.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.dsbSOM)
        

        self.label_9 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_9.setObjectName("label_9")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_9)
        self.dsbOBS = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbOBS.setObjectName("dsbOBS")
        self.dsbOBS.setRange(0.00,4.00)
        self.dsbOBS.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.dsbOBS)


        self.label_10 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_10.setObjectName("label_10")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_10)
        self.dsbINT = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbINT.setObjectName("dsbINT")
        self.dsbINT.setRange(0.00,4.00)
        self.dsbINT.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.dsbINT)


        self.label_11 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_11.setObjectName("label_11")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_11)
        self.dsbDEP = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbDEP.setObjectName("dsbDEP")
        self.dsbDEP.setRange(0.00,4.00)
        self.dsbDEP.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.dsbDEP)


        self.label_12 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_12.setObjectName("label_12")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_12)
        self.dsbANS = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbANS.setObjectName("dsbANS")
        self.dsbANS.setRange(0.00,4.00)
        self.dsbANS.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.dsbANS)


        self.label_13 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_13.setObjectName("label_13")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_13)
        self.dsbHOS = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbHOS.setObjectName("dsbHOS")
        self.dsbHOS.setRange(0.00,4.00)
        self.dsbHOS.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.dsbHOS)


        self.label_14 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_14.setObjectName("label_14")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_14)
        self.dsbFOB = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbFOB.setObjectName("dsbFOB")
        self.dsbFOB.setRange(0.00,3.95)
        self.dsbFOB.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.dsbFOB)


        self.label_15 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_15.setObjectName("label_15")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.label_15)
        self.dsbPAR = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbPAR.setObjectName("dsbPAR")
        self.dsbPAR.setRange(0.00,4.00)
        self.dsbPAR.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.dsbPAR)


        self.label_16 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_16.setObjectName("label_16")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_16)
        self.dsbPSI = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbPSI.setObjectName("dsbPSI")
        self.dsbPSI.setRange(0.00,3.89)
        self.dsbPSI.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.dsbPSI)


        self.label_17 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_17.setObjectName("label_17")
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_17)
        self.dsbGSI = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbGSI.setObjectName("dsbGSI")
        self.dsbGSI.setRange(0.08,3.86)
        self.dsbGSI.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.dsbGSI)


        self.label_18 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_18.setObjectName("label_18")
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.LabelRole, self.label_18)
        self.dsbPST = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbPST.setObjectName("dsbPST")
        self.dsbPST.setRange(5,90.0)
        self.dsbPST.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.FieldRole, self.dsbPST)


        self.label_19 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_19.setObjectName("label_19")
        self.formLayout.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.label_19)
        self.dsbPSDI = QtWidgets.QDoubleSpinBox(self.verticalLayoutWidget)
        self.dsbPSDI.setObjectName("dsbPSDI")
        self.dsbPSDI.setRange(1.03,4.00)
        self.dsbPSDI.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        self.formLayout.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.dsbPSDI)
        

        self.verticalLayout_2.addLayout(self.formLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pbStart = QtWidgets.QPushButton(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pbStart.sizePolicy().hasHeightForWidth())
        self.pbStart.setSizePolicy(sizePolicy)
        self.pbStart.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.pbStart.setObjectName("pbStart")
        self.horizontalLayout_2.addWidget(self.pbStart)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 5)
        self.verticalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout.setStretch(0, 1)
        self.verticalLayout.setStretch(0, 0)
        self.lWVistas = QtWidgets.QListWidget(Form)
        self.lWVistas.setGeometry(QtCore.QRect(0, 90, 221, 451))
        self.lWVistas.setObjectName("lWVistas")

        self.progressBar = QtWidgets.QProgressBar(Form)
        self.progressBar.setGeometry(QtCore.QRect(127, 560, 601, 23))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Exemplo n.º 28
0
	def __init__(self, valores):
		nombre = "FLUIDEZ"
		baremos = (pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal50-56.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal57-59.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal60-62.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal63-65.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal66-68.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal69-71.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal72-74.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal75-77.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal78-80.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/TablaFluidezVerbal81-90.csv')),
					pd.read_csv(APPCTXT().get_resource('./Baremos/EscolaridadFluidezVerbal.csv')))
		campos = ("P", "A")

		super(FluidezVerbalPrueba,self).__init__(nombre, valores, baremos, campos)
Exemplo n.º 29
0
    def setupUi(self, Form):
        """
         Método empleado para especificar el contenido de la Interfáz gráfica, es generado por pyuic5.
         Args:
          Form: Ventana en la que se deplegará la interfáz gráfica (es un tipo de dato QtWidget.QWidget) 
        """
        super().setupUI(Form)
        Form.setObjectName("Form")
        Form.resize(800, 598)

        self.verticalLayoutWidget = QtWidgets.QWidget(Form)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(220, 0, 581, 541))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")

        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")

        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")

        self.lblLogo = QtWidgets.QLabel(self.verticalLayoutWidget)

        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lblLogo.sizePolicy().hasHeightForWidth())

        self.lblLogo.setSizePolicy(sizePolicy)
        self.lblLogo.setMaximumSize(QtCore.QSize(1697 / 3.5, 312 / 3.5))
        self.lblLogo.setLineWidth(1)
        self.lblLogo.setText("")
        self.lblLogo.setPixmap(
            QtGui.QPixmap(APPCTXT().get_resource("logo3.png")))
        self.lblLogo.setScaledContents(True)
        self.lblLogo.setAlignment(QtCore.Qt.AlignCenter)
        self.lblLogo.setObjectName("lblLogo")

        self.horizontalLayout.addWidget(self.lblLogo)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")

        self.label_4 = QtWidgets.QLabel(self.verticalLayoutWidget)
        self.label_4.setToolTip("")
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)

        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading
                                         | QtCore.Qt.AlignLeft
                                         | QtCore.Qt.AlignVCenter)
        self.formLayout.setContentsMargins(7, -1, 7, -1)
        self.formLayout.setObjectName("formLayout")
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.ExpandingFieldsGrow)

        # Crear los labels de cada parámetro y su entrada
        # Agregarlos a los layouts
        self.labels = []
        self.questions = []
        self.mygroupbox = QtWidgets.QGroupBox('this is my groupbox')
        for x, _ in enumerate(dimensiones):

            self.labels.append(QtWidgets.QLabel(self.verticalLayoutWidget))
            self.labels[-1].setObjectName("label_" + str(x + 1))
            self.formLayout.setWidget(x, QtWidgets.QFormLayout.LabelRole,
                                      self.labels[-1])

            self.questions.append(QtWidgets.QSpinBox(
                self.verticalLayoutWidget))
            self.questions[-1].setObjectName("Q" + str(x + 1))
            self.questions[-1].setRange(0, 24)
            self.questions[-1].setSizePolicy(
                QtWidgets.QSizePolicy.MinimumExpanding,
                QtWidgets.QSizePolicy.Fixed)
            self.formLayout.setWidget(x, QtWidgets.QFormLayout.FieldRole,
                                      self.questions[-1])
        #self.mygroupbox.setLayout(self.formLayout)
        #self.scroll = QtWidgets.QScrollArea()
        #self.scroll.setWidget(self.formLayout)
        #self.scroll.setWidget(self.mygroupbox)
        #self.scroll.setWidget(self.formLayout)
        #self.scroll.setWidgetResizable(True)
        #self.scroll.setFixedHeight(400)
        self.verticalLayout_2.addLayout(self.formLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pbStart = QtWidgets.QPushButton(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pbStart.sizePolicy().hasHeightForWidth())
        self.pbStart.setSizePolicy(sizePolicy)
        self.pbStart.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.pbStart.setObjectName("pbStart")
        self.horizontalLayout_2.addWidget(self.pbStart)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 5)
        self.verticalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout.setStretch(0, 1)
        self.verticalLayout.setStretch(0, 0)
        self.lWVistas = QtWidgets.QListWidget(Form)
        self.lWVistas.setGeometry(QtCore.QRect(0, 90, 221, 451))
        self.lWVistas.setObjectName("lWVistas")

        self.progressBar = QtWidgets.QProgressBar(Form)
        self.progressBar.setGeometry(QtCore.QRect(127, 560, 601, 23))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
    def setupUI(self, Form):
        self.backButton = QtWidgets.QPushButton(Form)
        self.backButton.setGeometry(QtCore.QRect(15, 50, 20, 30))
        self.backButton.setObjectName("returnButton")

        # Header
        Form.setObjectName("Form")
        Form.resize(800, 598)
        self.verticalLayoutWidget = QtWidgets.QWidget(Form)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(220, 0, 581, 541))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lblLogo = QtWidgets.QLabel(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lblLogo.sizePolicy().hasHeightForWidth())
        self.lblLogo.setSizePolicy(sizePolicy)
        self.lblLogo.setMaximumSize(QtCore.QSize(1697 / 3.5, 312 / 3.5))
        self.lblLogo.setLineWidth(1)
        self.lblLogo.setText("")
        self.lblLogo.setPixmap(
            QtGui.QPixmap(APPCTXT().get_resource("logo3.png")))
        self.lblLogo.setScaledContents(True)
        self.lblLogo.setAlignment(QtCore.Qt.AlignCenter)
        self.lblLogo.setObjectName("lblLogo")
        self.horizontalLayout.addWidget(self.lblLogo)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")

        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading
                                         | QtCore.Qt.AlignLeft
                                         | QtCore.Qt.AlignVCenter)
        self.formLayout.setContentsMargins(7, -1, 7, -1)
        self.formLayout.setObjectName("formLayout")
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.ExpandingFieldsGrow)

        # Footer
        self.verticalLayout_2.addLayout(self.formLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pbStart = QtWidgets.QPushButton(self.verticalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pbStart.sizePolicy().hasHeightForWidth())
        self.pbStart.setSizePolicy(sizePolicy)
        self.pbStart.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.pbStart.setObjectName("pbStart")
        self.horizontalLayout_2.addWidget(self.pbStart)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 5)
        self.verticalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout.setStretch(0, 1)
        self.verticalLayout.setStretch(0, 0)
        self.lWVistas = QtWidgets.QListWidget(Form)
        self.lWVistas.setGeometry(QtCore.QRect(0, 90, 221, 451))
        self.lWVistas.setObjectName("lWVistas")

        self.progressBar = QtWidgets.QProgressBar(Form)
        self.progressBar.setGeometry(QtCore.QRect(127, 560, 601, 23))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")