def _close_button_click(self, event): # Remove temp files if os.path.exists(tmp_dir): rmtree(tmp_dir) playlistCollection.save() library_playlist.save() Gtk.main_quit()
def on_close(self, widget=None, event=None): playlistCollection.save() library_playlist.save() Gtk.main_quit()