1
I have the following code in Python:
storage.tableWidget.setColumnWidth(0, 30)
storage.tableWidget.setColumnWidth(1, 140)
storage.tableWidget.setColumnWidth(2, 90)
storage.tableWidget.setColumnWidth(3, 55)
storage.tableWidget.setColumnWidth(4, 60)
storage.tableWidget.setColumnWidth(5, 40)
it accesses each column in a tableWidget(first argument) and sets the cell size (second argument).
I lack knowledge, but I believe it is possible to decrease this code with some loop, keeping in mind that the first argument is sequential (0,1,2,3,4,5). Someone can give me a light?
thank you.
https://ideone.com/dIV9D7
– bfavaretto