def update_model(self): dialog = ProgressBarDialog(self.window, "Loading...") dialog.show() builder = ViewerListStoreBuilder(self.files, self.thumb_size) updater = Updater(builder.build(), dialog.update, self.on_model_ready, (builder, dialog)) updater.start()
def update_model(self, filter_=""): dialog = ProgressBarDialog(self.window, "Loading...") dialog.show() builder = SelectorListStoreBuilder(self.curdir, filter_, self.thumb_size) updater = Updater(builder.build(), dialog.update, self.on_model_ready, (builder, dialog)) updater.start()