-
Notifications
You must be signed in to change notification settings - Fork 0
/
list_trab.py
113 lines (106 loc) · 6.28 KB
/
list_trab.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'list_trab.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_list_trab(object):
def setupUi(self, list_trab):
list_trab.setObjectName("list_trab")
list_trab.setWindowModality(QtCore.Qt.ApplicationModal)
list_trab.resize(425, 327)
self.centralwidget = QtWidgets.QWidget(list_trab)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.frame_2 = QtWidgets.QFrame(self.centralwidget)
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label = QtWidgets.QLabel(self.frame_2)
self.label.setObjectName("label")
self.horizontalLayout_2.addWidget(self.label)
self.trab_ret = QtWidgets.QCheckBox(self.frame_2)
self.trab_ret.setObjectName("trab_ret")
self.horizontalLayout_2.addWidget(self.trab_ret)
self.verticalLayout.addWidget(self.frame_2)
self.tableWidget = QtWidgets.QTableWidget(self.centralwidget)
self.tableWidget.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow)
self.tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.AnyKeyPressed|QtWidgets.QAbstractItemView.EditKeyPressed)
self.tableWidget.setAlternatingRowColors(True)
self.tableWidget.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
self.tableWidget.setWordWrap(True)
self.tableWidget.setObjectName("tableWidget")
self.tableWidget.setColumnCount(4)
self.tableWidget.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(3, item)
self.verticalLayout.addWidget(self.tableWidget)
self.line = QtWidgets.QFrame(self.centralwidget)
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.centralwidget)
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(36, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.verFicha = QtWidgets.QPushButton(self.frame)
self.verFicha.setObjectName("verFicha")
self.horizontalLayout.addWidget(self.verFicha)
spacerItem1 = QtWidgets.QSpacerItem(35, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.crear = QtWidgets.QPushButton(self.frame)
self.crear.setObjectName("crear")
self.horizontalLayout.addWidget(self.crear)
spacerItem2 = QtWidgets.QSpacerItem(36, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.cerrar = QtWidgets.QPushButton(self.frame)
self.cerrar.setObjectName("cerrar")
self.horizontalLayout.addWidget(self.cerrar)
spacerItem3 = QtWidgets.QSpacerItem(36, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem3)
self.verticalLayout.addWidget(self.frame)
list_trab.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(list_trab)
self.menubar.setGeometry(QtCore.QRect(0, 0, 425, 22))
self.menubar.setObjectName("menubar")
list_trab.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(list_trab)
self.statusbar.setObjectName("statusbar")
list_trab.setStatusBar(self.statusbar)
self.retranslateUi(list_trab)
QtCore.QMetaObject.connectSlotsByName(list_trab)
def retranslateUi(self, list_trab):
_translate = QtCore.QCoreApplication.translate
list_trab.setWindowTitle(_translate("list_trab", "Listado de trabajadores"))
self.label.setText(_translate("list_trab", "<html><head/><body><p align=\"center\"><span style=\" font-size:12pt; font-weight:600;\">Listado de Trabajadores</span></p></body></html>"))
self.trab_ret.setText(_translate("list_trab", "Ver trabajadores desincorporados"))
self.tableWidget.setToolTip(_translate("list_trab", "<html><head/><body><p>Dar click sobre un trabajador y presione el botón "Ver ficha" para ver su ficha, o tambien dar doble click sobre la fila.</p></body></html>"))
self.tableWidget.setSortingEnabled(True)
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("list_trab", "ID"))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("list_trab", "Nombre"))
item = self.tableWidget.horizontalHeaderItem(2)
item.setText(_translate("list_trab", "Apellido"))
item = self.tableWidget.horizontalHeaderItem(3)
item.setText(_translate("list_trab", "Estatus"))
self.verFicha.setText(_translate("list_trab", "Ver ficha"))
self.crear.setToolTip(_translate("list_trab", "<html><head/><body><p>Crear nuevo trabajador</p></body></html>"))
self.crear.setText(_translate("list_trab", "Crear Nuevo"))
self.cerrar.setText(_translate("list_trab", "Cerrar"))