def deleteMatteID(self) : conn = sqlite3.connect(str(self.ui.dbPath_lineEdit.text())) mIDs = self.getDataFromSelectedRange(self.midCol, 'matteID_tableWidget') db.deleteMatteID(conn, mIDs) conn.commit() conn.close() self.viewMatteIDTable()
def deleteObjectID(self) : conn = sqlite3.connect(str(self.ui.dbPath_lineEdit.text())) oIDs = self.getDataFromSelectedRange(self.oIDCol, 'objectID_tableWidget') mIDs = self.getDataFromSelectedRange(self.mIDsCol, 'objectID_tableWidget') db.deleteObjectID(conn, oIDs) db.deleteMatteID(conn, eval(mIDs[0])) conn.commit() conn.close() self.viewObjectIDTable()