SHARE
TWEET

Untitled

a guest Jul 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def addItem(self):
  2.     lastrow = self.tableWidget.rowCount()
  3.     self.tableWidget.insertRow(lastrow)
  4.     item0 = QTableWidgetItem(text)
  5.     item = QTableWidgetItem(new_filename)
  6.     item2 = QTableWidgetItem(filename)
  7.     item3 = QTableWidgetItem(fsize)
  8.     item4 = QTableWidgetItem(strftime("%m %H:%M:%S %Y", gmtime()))
  9.     self.tableWidget.setItem(lastrow,0,item0)
  10.     self.tableWidget.setItem(lastrow, 1, item2)
  11.     self.tableWidget.setItem(lastrow, 2, item3)
  12.     self.tableWidget.setItem(lastrow, 3, item4)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top