repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
#changed all email address to go through python.org
[python/dscho.git]
/
Mac
/
Modules
/
menu
/
menuedit.py
blob
7d53cd513ceadd7ab64c0e428fbff27510bbd03b
1
f
=
Function
(
void
,
'OpenDeskAcc'
,
2
(
Str255
,
'name'
,
InMode
),
3
)
4
functions
.
append
(
f
)
5
6
as_resource_body
=
"""
7
return ResObj_New((Handle)_self->ob_itself);
8
"""
9
10
f
=
ManualGenerator
(
"as_Resource"
,
as_resource_body
)
11
f
.
docstring
=
lambda
:
"Return this Menu as a Resource"
12
13
methods
.
append
(
f
)