def refreshListView(self): self.listView.clear() torrents = self.app.rtorrent.torrents for k, v in self.app.rtorrent.torrents.items(): item = KListViewItem(self.listView, v.name) item.infohash = k