def refreshListView(self): self.listView.clear() for row in self.aptsrc.get_apt_rows(): item = KListViewItem(self.listView, row.apt_id) item.apt_id = row.apt_id