-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcargas adicionais_atualizada.py
47 lines (31 loc) · 1.48 KB
/
cargas adicionais_atualizada.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
import sys
from PyQt5.uic import loadUi
from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel, QMessageBox, QVBoxLayout, QHBoxLayout, QDialog, QMessageBox
from PyQt5.QtGui import QPixmap, QIcon, QImage
from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.QtWidgets import QTableWidget,QTableWidgetItem
from PyQt5 import QtWidgets, QtGui, QtCore
class Carga_Adicional(QtWidgets.QMainWindow):
def __init__(self):
super().__init__()
self.ui = loadUi('lajes_carg_adicional_atualizada.ui',self)
#self.tableWidget.setRowCount(linhas)
#self.tableWidget.setColumnCount(colunas)
#table = self.tableWidget()
#header = self.tableWidget.horizontalHeader()
#header.setSectionResizeMode(QtWidgets.QHeaderView.ResizeToContents)
#header.setSectionResizeMode(0, QtWidgets.QHeaderView.Stretch)
header = self.tableWidget.horizontalHeader()
#header.setSectionResizeMode(0, QtWidgets.QHeaderView.Stretch)
#header.setSectionResizeMode(1, QtWidgets.QHeaderView.ResizeToContents)
#header.setSectionResizeMode(1, QtWidgets.QHeaderView.Stretch)
header.setSectionResizeMode(0, QtWidgets.QHeaderView.Stretch)
#item = QTableWidgetItem('Cargas') # create the item
#item.setTextAlignment(QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter) # change the alignment
#self.tableWidget.resizeRowsToContents()
self.setWindowTitle('Navier - Cargas Adicionais')
self.show()
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
aplicacao = Carga_Adicional()
app.exec_()