Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fillTable(self, table, col, row):
- for i in range(col):
- item = QtWidgets.QTableWidgetItem()
- table.setHorizontalHeaderItem(i, item)
- idx = 0
- while idx != row:
- for i in range(col):
- item = QtWidgets.QTableWidgetItem()
- table.setItem(idx, i, item)
- idx += 1
- def fillCell(self, table, col, row):
- idx = 0
- while ui.query.next():
- for i in range(col):
- item = table.item(idx, i)
- item.setText(_translate("Form1", str(ui.query.value(i))))
- idx+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement