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()
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)
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()
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)