Beispiel #1
0
    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()
Beispiel #2
0
    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()