nanome.api.ui.io.menu_io module

class MenuIO(base_object=None)[source]

Bases: nanome._internal.addon._Addon

from_json(path)[source]
Parses a Menu json file and returns a Menu.
Parameters:path (str) – The path to the Menu json to parse
to_json(path)[source]
Serializes this instance’s base_object to the json file specified by path.
Parameters:path (str) – The path to serialize base_object’s json representation to
update_json(path)[source]
Updates a menu written for an old version of the library.
Call once before reading and run once. Then you can remove the call.
Parameters:path (str) – path to the menu you wish to update.