-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesign.py
71 lines (64 loc) · 3.04 KB
/
design.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'design.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(661, 203)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.label = QtWidgets.QLabel(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(15)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 1, 1, 1, 1)
self.btnGeraCPF = QtWidgets.QPushButton(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(15)
self.btnGeraCPF.setFont(font)
self.btnGeraCPF.setObjectName("btnGeraCPF")
self.gridLayout.addWidget(self.btnGeraCPF, 1, 2, 1, 1)
self.inputValidaCPF = QtWidgets.QLineEdit(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(15)
self.inputValidaCPF.setFont(font)
self.inputValidaCPF.setObjectName("inputValidaCPF")
self.gridLayout.addWidget(self.inputValidaCPF, 0, 1, 1, 1)
self.label_2 = QtWidgets.QLabel(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(15)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
self.btnValidaCPF = QtWidgets.QPushButton(self.centralwidget)
self.btnValidaCPF.setMinimumSize(QtCore.QSize(200, 0))
font = QtGui.QFont()
font.setPointSize(15)
self.btnValidaCPF.setFont(font)
self.btnValidaCPF.setObjectName("btnValidaCPF")
self.gridLayout.addWidget(self.btnValidaCPF, 0, 2, 1, 1)
self.labelRetorno = QtWidgets.QLineEdit(self.centralwidget)
font = QtGui.QFont()
font.setPointSize(30)
self.labelRetorno.setFont(font)
self.labelRetorno.setReadOnly(True)
self.labelRetorno.setObjectName("labelRetorno")
self.gridLayout.addWidget(self.labelRetorno, 2, 0, 1, 3)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Valida ou gera CPF"))
self.label.setText(_translate("MainWindow", "Gerar CPF:"))
self.btnGeraCPF.setText(_translate("MainWindow", "GERAR"))
self.label_2.setText(_translate("MainWindow", "Validar CPF:"))
self.btnValidaCPF.setText(_translate("MainWindow", "VALIDAR"))