summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/menu/menuedit.py
blob: 7d53cd513ceadd7ab64c0e428fbff27510bbd03b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)