-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout1 copy.py
277 lines (268 loc) · 17.2 KB
/
layout1 copy.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'layout1.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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setEnabled(True)
MainWindow.resize(450, 750)
MainWindow.setMinimumSize(QtCore.QSize(450, 750))
MainWindow.setMaximumSize(QtCore.QSize(450, 750))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("C:/Users/Jian/Downloads/29313 (1).ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setStyleSheet("")
self.centralwidget = QtWidgets.QWidget(MainWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setMaximumSize(QtCore.QSize(1105, 16777215))
self.centralwidget.setObjectName("centralwidget")
self.logo = QtWidgets.QLabel(self.centralwidget)
self.logo.setGeometry(QtCore.QRect(80, 10, 281, 111))
self.logo.setText("")
self.logo.setPixmap(QtGui.QPixmap("C:/Users/Jian/Downloads/inffo.png"))
self.logo.setObjectName("logo")
self.informacoes = QtWidgets.QLabel(self.centralwidget)
self.informacoes.setGeometry(QtCore.QRect(10, 670, 421, 31))
self.informacoes.setObjectName("informacoes")
self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget.setGeometry(QtCore.QRect(60, 200, 301, 141))
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_name = QtWidgets.QLabel(self.layoutWidget)
self.label_name.setObjectName("label_name")
self.horizontalLayout.addWidget(self.label_name)
self.input_name = QtWidgets.QLineEdit(self.layoutWidget)
self.input_name.setObjectName("input_name")
self.horizontalLayout.addWidget(self.input_name)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label_telefone = QtWidgets.QLabel(self.layoutWidget)
self.label_telefone.setObjectName("label_telefone")
self.horizontalLayout_2.addWidget(self.label_telefone)
self.input_telefone = QtWidgets.QLineEdit(self.layoutWidget)
self.input_telefone.setObjectName("input_telefone")
self.horizontalLayout_2.addWidget(self.input_telefone)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_endereco = QtWidgets.QLabel(self.layoutWidget)
self.label_endereco.setObjectName("label_endereco")
self.horizontalLayout_3.addWidget(self.label_endereco)
self.input_endereco = QtWidgets.QLineEdit(self.layoutWidget)
self.input_endereco.setObjectName("input_endereco")
self.horizontalLayout_3.addWidget(self.input_endereco)
self.verticalLayout_2.addLayout(self.horizontalLayout_3)
self.line_qnt = QtWidgets.QLineEdit(self.centralwidget)
self.line_qnt.setGeometry(QtCore.QRect(20, 370, 41, 20))
self.line_qnt.setStyleSheet("\n"
"background-color: rgb(255, 255, 255);")
self.line_qnt.setObjectName("line_qnt")
self.line_descricao = QtWidgets.QLineEdit(self.centralwidget)
self.line_descricao.setGeometry(QtCore.QRect(70, 370, 150, 20))
self.line_descricao.setObjectName("line_descricao")
self.label_qnt = QtWidgets.QLabel(self.centralwidget)
self.label_qnt.setGeometry(QtCore.QRect(20, 350, 41, 16))
self.label_qnt.setObjectName("label_qnt")
self.label_descricao = QtWidgets.QLabel(self.centralwidget)
self.label_descricao.setGeometry(QtCore.QRect(80, 350, 131, 16))
self.label_descricao.setObjectName("label_descricao")
self.label_unidade = QtWidgets.QLabel(self.centralwidget)
self.label_unidade.setGeometry(QtCore.QRect(230, 350, 41, 16))
self.label_unidade.setObjectName("label_unidade")
self.label_valor = QtWidgets.QLabel(self.centralwidget)
self.label_valor.setGeometry(QtCore.QRect(280, 350, 61, 16))
self.label_valor.setObjectName("label_valor")
self.line_unidade_2 = QtWidgets.QLineEdit(self.centralwidget)
self.line_unidade_2.setGeometry(QtCore.QRect(230, 370, 41, 20))
self.line_unidade_2.setObjectName("line_unidade_2")
self.line_valor = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor.setGeometry(QtCore.QRect(280, 370, 61, 20))
self.line_valor.setObjectName("line_valor")
self.line_descricao_2 = QtWidgets.QLineEdit(self.centralwidget)
self.line_descricao_2.setGeometry(QtCore.QRect(70, 400, 150, 20))
self.line_descricao_2.setObjectName("line_descricao_2")
self.line_unidade_3 = QtWidgets.QLineEdit(self.centralwidget)
self.line_unidade_3.setGeometry(QtCore.QRect(230, 400, 41, 20))
self.line_unidade_3.setObjectName("line_unidade_3")
self.line_valor_2 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_2.setGeometry(QtCore.QRect(280, 400, 61, 20))
self.line_valor_2.setObjectName("line_valor_2")
self.line_qnt_2 = QtWidgets.QLineEdit(self.centralwidget)
self.line_qnt_2.setGeometry(QtCore.QRect(20, 400, 41, 20))
self.line_qnt_2.setObjectName("line_qnt_2")
self.line_descricao_3 = QtWidgets.QLineEdit(self.centralwidget)
self.line_descricao_3.setGeometry(QtCore.QRect(70, 430, 150, 20))
self.line_descricao_3.setObjectName("line_descricao_3")
self.line_unidade = QtWidgets.QLineEdit(self.centralwidget)
self.line_unidade.setGeometry(QtCore.QRect(230, 430, 41, 20))
self.line_unidade.setObjectName("line_unidade")
self.line_valor_3 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_3.setGeometry(QtCore.QRect(280, 430, 61, 20))
self.line_valor_3.setObjectName("line_valor_3")
self.line_qnt_3 = QtWidgets.QLineEdit(self.centralwidget)
self.line_qnt_3.setGeometry(QtCore.QRect(20, 430, 41, 20))
self.line_qnt_3.setObjectName("line_qnt_3")
self.line_descricao_4 = QtWidgets.QLineEdit(self.centralwidget)
self.line_descricao_4.setGeometry(QtCore.QRect(70, 460, 150, 20))
self.line_descricao_4.setObjectName("line_descricao_4")
self.line_unidade_4 = QtWidgets.QLineEdit(self.centralwidget)
self.line_unidade_4.setGeometry(QtCore.QRect(230, 460, 41, 20))
self.line_unidade_4.setObjectName("line_unidade_4")
self.line_valor_5 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_5.setGeometry(QtCore.QRect(280, 490, 61, 20))
self.line_valor_5.setObjectName("line_valor_5")
self.line_descricao_6 = QtWidgets.QLineEdit(self.centralwidget)
self.line_descricao_6.setGeometry(QtCore.QRect(70, 520, 150, 20))
self.line_descricao_6.setObjectName("line_descricao_6")
self.line_valor_6 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_6.setGeometry(QtCore.QRect(280, 520, 61, 20))
self.line_valor_6.setObjectName("line_valor_6")
self.line_qnt_5 = QtWidgets.QLineEdit(self.centralwidget)
self.line_qnt_5.setGeometry(QtCore.QRect(20, 490, 41, 20))
self.line_qnt_5.setObjectName("line_qnt_5")
self.line_descricao_5 = QtWidgets.QLineEdit(self.centralwidget)
self.line_descricao_5.setGeometry(QtCore.QRect(70, 490, 150, 20))
self.line_descricao_5.setObjectName("line_descricao_5")
self.line_unidade_5 = QtWidgets.QLineEdit(self.centralwidget)
self.line_unidade_5.setGeometry(QtCore.QRect(230, 490, 41, 20))
self.line_unidade_5.setObjectName("line_unidade_5")
self.line_unidade_6 = QtWidgets.QLineEdit(self.centralwidget)
self.line_unidade_6.setGeometry(QtCore.QRect(230, 520, 41, 20))
self.line_unidade_6.setObjectName("line_unidade_6")
self.line_valor_4 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_4.setGeometry(QtCore.QRect(280, 460, 61, 20))
self.line_valor_4.setObjectName("line_valor_4")
self.line_qnt_6 = QtWidgets.QLineEdit(self.centralwidget)
self.line_qnt_6.setGeometry(QtCore.QRect(20, 520, 41, 20))
self.line_qnt_6.setObjectName("line_qnt_6")
self.line_qnt_4 = QtWidgets.QLineEdit(self.centralwidget)
self.line_qnt_4.setGeometry(QtCore.QRect(20, 460, 41, 20))
self.line_qnt_4.setObjectName("line_qnt_4")
self.informacoes_1 = QtWidgets.QLabel(self.centralwidget)
self.informacoes_1.setGeometry(QtCore.QRect(10, 680, 401, 41))
self.informacoes_1.setObjectName("informacoes_1")
self.informacoes_2 = QtWidgets.QLabel(self.centralwidget)
self.informacoes_2.setGeometry(QtCore.QRect(10, 700, 401, 31))
self.informacoes_2.setObjectName("informacoes_2")
self.widget = QtWidgets.QWidget(self.centralwidget)
self.widget.setGeometry(QtCore.QRect(250, 550, 141, 22))
self.widget.setObjectName("widget")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.widget)
self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.label_valortotal = QtWidgets.QLabel(self.widget)
self.label_valortotal.setObjectName("label_valortotal")
self.horizontalLayout_5.addWidget(self.label_valortotal)
self.line_data_2 = QtWidgets.QLineEdit(self.widget)
self.line_data_2.setObjectName("line_data_2")
self.horizontalLayout_5.addWidget(self.line_data_2)
self.line_valor_7 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_7.setGeometry(QtCore.QRect(350, 370, 40, 20))
self.line_valor_7.setObjectName("line_valor_7")
self.label_valor_2 = QtWidgets.QLabel(self.centralwidget)
self.label_valor_2.setGeometry(QtCore.QRect(350, 350, 40, 16))
self.label_valor_2.setObjectName("label_valor_2")
self.line_valor_8 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_8.setGeometry(QtCore.QRect(350, 400, 40, 20))
self.line_valor_8.setObjectName("line_valor_8")
self.line_valor_9 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_9.setGeometry(QtCore.QRect(350, 430, 40, 20))
self.line_valor_9.setObjectName("line_valor_9")
self.line_valor_10 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_10.setGeometry(QtCore.QRect(350, 460, 40, 20))
self.line_valor_10.setObjectName("line_valor_10")
self.line_valor_11 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_11.setGeometry(QtCore.QRect(350, 490, 40, 20))
self.line_valor_11.setObjectName("line_valor_11")
self.line_valor_12 = QtWidgets.QLineEdit(self.centralwidget)
self.line_valor_12.setGeometry(QtCore.QRect(350, 520, 40, 20))
self.line_valor_12.setObjectName("line_valor_12")
self.widget1 = QtWidgets.QWidget(self.centralwidget)
self.widget1.setGeometry(QtCore.QRect(260, 170, 101, 22))
self.widget1.setObjectName("widget1")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.widget1)
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.label_name_2 = QtWidgets.QLabel(self.widget1)
self.label_name_2.setObjectName("label_name_2")
self.horizontalLayout_6.addWidget(self.label_name_2)
self.line_data = QtWidgets.QLineEdit(self.widget1)
self.line_data.setObjectName("line_data")
self.horizontalLayout_6.addWidget(self.line_data)
self.widget2 = QtWidgets.QWidget(self.centralwidget)
self.widget2.setGeometry(QtCore.QRect(140, 580, 148, 72))
self.widget2.setObjectName("widget2")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.widget2)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.btn_imprimir = QtWidgets.QPushButton(self.widget2)
self.btn_imprimir.setMinimumSize(QtCore.QSize(70, 70))
self.btn_imprimir.setMaximumSize(QtCore.QSize(70, 70))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.btn_imprimir.setFont(font)
self.btn_imprimir.setAutoFillBackground(False)
self.btn_imprimir.setStyleSheet("")
self.btn_imprimir.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap("C:/Users/Jian/Desktop/imprimir.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.btn_imprimir.setIcon(icon1)
self.btn_imprimir.setIconSize(QtCore.QSize(60, 60))
self.btn_imprimir.setObjectName("btn_imprimir")
self.horizontalLayout_4.addWidget(self.btn_imprimir)
self.btn_cancelar = QtWidgets.QPushButton(self.widget2)
self.btn_cancelar.setMinimumSize(QtCore.QSize(70, 70))
self.btn_cancelar.setMaximumSize(QtCore.QSize(70, 70))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.btn_cancelar.setFont(font)
self.btn_cancelar.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap("C:/Users/Jian/Desktop/cancelar.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.btn_cancelar.setIcon(icon2)
self.btn_cancelar.setIconSize(QtCore.QSize(50, 50))
self.btn_cancelar.setObjectName("btn_cancelar")
self.horizontalLayout_4.addWidget(self.btn_cancelar)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Emissor de Pedidos de Cartuchos"))
self.informacoes.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:10pt; font-weight:600;\">Quintino Bocaiuva 160 </span></p></body></html>"))
self.label_name.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\"> Nome </span></p></body></html>"))
self.label_telefone.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Telefone</span></p></body></html>"))
self.label_endereco.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Endereço</span></p></body></html>"))
self.label_qnt.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Qnt</span></p></body></html>"))
self.label_descricao.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Descriçao</span></p></body></html>"))
self.label_unidade.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">V.Uni</span></p></body></html>"))
self.label_valor.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Valor</span></p></body></html>"))
self.informacoes_1.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">049 3567-3350</span></p></body></html>"))
self.informacoes_2.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Caçador-SC </span></p></body></html>"))
self.label_valortotal.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Valor Total</span></p></body></html>"))
self.label_valor_2.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Ent</span></p></body></html>"))
self.label_name_2.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Data</span></p></body></html>"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())