Esempio n. 1
0
    def create_library_from_directory(self):
        try:
            library_directory = filedialog.askdirectory()

            if library_directory:
                self.library = ml.create_library(library_directory)
                self.current_library_filename = None
                self.current_category = None
                self.refresh_category_om()
                self.refresh_song_lb(None)
                self.load_weights()
        except Exception as e:
            print(traceback.print_exc())
            messagebox.showerror('Create Library Error', e)