Exemple #1
0
class DirectorySelectorDialogCustom:
    def __init__(self, title, parent, initial_dir, last_targets, callback):
        self.gallery = GallerySelector(title, parent, initial_dir, last_targets,
                                       on_file_selected=lambda f: None,
                                       on_dir_selected=lambda d, r: callback(d),
                                       dir_selector=True)

    def run(self):
        self.gallery.run()
Exemple #2
0
 def __init__(self, title, parent, initial_dir, initial_filename, on_file_selected, on_dir_selected):
     self.gallery = GallerySelector(title, parent, initial_dir, [], on_file_selected, on_dir_selected)
Exemple #3
0
class FileSelectorDialogCustom:
    def __init__(self, title, parent, initial_dir, initial_filename, on_file_selected, on_dir_selected):
        self.gallery = GallerySelector(title, parent, initial_dir, [], on_file_selected, on_dir_selected)

    def run(self):
        self.gallery.run()
Exemple #4
0
 def __init__(self, title, parent, initial_dir, last_targets, callback):
     self.gallery = GallerySelector(title, parent, initial_dir, last_targets,
                                    on_file_selected=lambda f: None,
                                    on_dir_selected=lambda d, r: callback(d),
                                    dir_selector=True)