def menu_open(self, info): file_name = get_outfile(folder_name='.ylpa', file_name='') file_ = open_file(file_name=file_name) if file_: info.object.root = pickle.load(open(file_, 'rb'))
def menu_save(self, info): file_name = get_outfile(folder_name='.ylpa', file_name='') file_ = save_file(file_name=file_name) if file_: pickle.dump(info.object.root, open(file_, 'wb'), 1)