-
Notifications
You must be signed in to change notification settings - Fork 0
/
acceso.py
136 lines (129 loc) · 6.97 KB
/
acceso.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'acceso.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# 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_acceso(object):
def setupUi(self, acceso):
acceso.setObjectName("acceso")
acceso.setWindowModality(QtCore.Qt.ApplicationModal)
acceso.resize(674, 384)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(acceso.sizePolicy().hasHeightForWidth())
acceso.setSizePolicy(sizePolicy)
self.centralwidget = QtWidgets.QWidget(acceso)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label_4 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
self.label_4.setSizePolicy(sizePolicy)
self.label_4.setFrameShadow(QtWidgets.QFrame.Raised)
self.label_4.setText("")
self.label_4.setPixmap(QtGui.QPixmap("iconos/SNPDO - p.jpg"))
self.label_4.setScaledContents(True)
self.label_4.setObjectName("label_4")
self.horizontalLayout_2.addWidget(self.label_4)
self.line_2 = QtWidgets.QFrame(self.centralwidget)
self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.horizontalLayout_2.addWidget(self.line_2)
self.frame_2 = QtWidgets.QFrame(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
self.frame_2.setSizePolicy(sizePolicy)
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_2)
self.verticalLayout.setObjectName("verticalLayout")
self.label = QtWidgets.QLabel(self.frame_2)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.verticalLayout.addWidget(self.label)
self.formLayout = QtWidgets.QFormLayout()
self.formLayout.setObjectName("formLayout")
self.label_2 = QtWidgets.QLabel(self.frame_2)
self.label_2.setObjectName("label_2")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_2)
self.label_3 = QtWidgets.QLabel(self.frame_2)
self.label_3.setObjectName("label_3")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_3)
self.usuario = QtWidgets.QLineEdit(self.frame_2)
self.usuario.setClearButtonEnabled(True)
self.usuario.setObjectName("usuario")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.usuario)
self.clave = QtWidgets.QLineEdit(self.frame_2)
self.clave.setEchoMode(QtWidgets.QLineEdit.Password)
self.clave.setClearButtonEnabled(True)
self.clave.setObjectName("clave")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.clave)
self.verticalLayout.addLayout(self.formLayout)
self.line = QtWidgets.QFrame(self.frame_2)
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.verticalLayout.addWidget(self.line)
self.frame = QtWidgets.QFrame(self.frame_2)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtWidgets.QSpacerItem(6, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.aceptar = QtWidgets.QPushButton(self.frame)
self.aceptar.setObjectName("aceptar")
self.horizontalLayout.addWidget(self.aceptar)
spacerItem1 = QtWidgets.QSpacerItem(5, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.cerrar = QtWidgets.QPushButton(self.frame)
self.cerrar.setObjectName("cerrar")
self.horizontalLayout.addWidget(self.cerrar)
spacerItem2 = QtWidgets.QSpacerItem(6, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.verticalLayout.addWidget(self.frame)
self.label_5 = QtWidgets.QLabel(self.frame_2)
self.label_5.setObjectName("label_5")
self.verticalLayout.addWidget(self.label_5)
self.version = QtWidgets.QLabel(self.frame_2)
self.version.setObjectName("version")
self.verticalLayout.addWidget(self.version)
self.horizontalLayout_2.addWidget(self.frame_2)
acceso.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(acceso)
self.menubar.setGeometry(QtCore.QRect(0, 0, 674, 22))
self.menubar.setObjectName("menubar")
acceso.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(acceso)
self.statusbar.setObjectName("statusbar")
acceso.setStatusBar(self.statusbar)
self.retranslateUi(acceso)
QtCore.QMetaObject.connectSlotsByName(acceso)
def retranslateUi(self, acceso):
_translate = QtCore.QCoreApplication.translate
acceso.setWindowTitle(_translate("acceso", "Acceso"))
self.label.setText(_translate("acceso", "Acceso"))
self.label_2.setText(_translate("acceso", "Usuario:"))
self.label_3.setText(_translate("acceso", "Contraseña:"))
self.aceptar.setText(_translate("acceso", "Aceptar"))
self.aceptar.setShortcut(_translate("acceso", "Return"))
self.cerrar.setText(_translate("acceso", "Cerrar"))
self.cerrar.setShortcut(_translate("acceso", "Esc"))
self.label_5.setText(_translate("acceso", "Sistema de nómina SNPDO. \n"
"2018, 2022. SNPDO y su logo \n"
"son marcas registradas.\n"
"Baltazar Díaz"))
self.version.setText(_translate("acceso", "version"))
import recurso_acceso_rc