def onNewHotCommunitiesAvailable(self, squares, texts): print "New suggestions arrived", squares, texts self.mainwin.suggested_squares_list.clear() for square in squares: list_item = SquareOverviewListItem(parent=self.mainwin.suggested_squares_list, square=square) list_item.square = square