cpython/Mac/Modules/menu/menuedit.py

14 lines
285 B
Python
Raw Normal View History

1995-03-19 22:42:51 +00:00
f = Function(void, 'OpenDeskAcc',
(Str255, 'name', InMode),
)
functions.append(f)
as_resource_body = """
return ResObj_New((Handle)_self->ob_itself);
"""
f = ManualGenerator("as_Resource", as_resource_body)
f.docstring = lambda : "Return this Menu as a Resource"
methods.append(f)