diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-02-07 14:02:03 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-02-07 14:02:03 (GMT) |
commit | e058189040dcaf951c34d66f99eeb7e4ee91af6a (patch) | |
tree | 673cb8b9538f0573222f3577597709bd442a84e5 /Mac/Modules/menu/menuedit.py | |
parent | b0687899d7a84c09f00bcf492e76eee3a44143b3 (diff) | |
download | cpython-e058189040dcaf951c34d66f99eeb7e4ee91af6a.zip cpython-e058189040dcaf951c34d66f99eeb7e4ee91af6a.tar.gz cpython-e058189040dcaf951c34d66f99eeb7e4ee91af6a.tar.bz2 |
Added Ctl.as_Control and Menu.as_Menu methods, which take a resource as
argument and return a Control or Menu object.
Diffstat (limited to 'Mac/Modules/menu/menuedit.py')
-rw-r--r-- | Mac/Modules/menu/menuedit.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Modules/menu/menuedit.py b/Mac/Modules/menu/menuedit.py index 37aace4..8e7d12b 100644 --- a/Mac/Modules/menu/menuedit.py +++ b/Mac/Modules/menu/menuedit.py @@ -3,6 +3,10 @@ f = Function(void, 'OpenDeskAcc', ) functions.append(f) +f = Function(MenuHandle, 'as_Menu', + (Handle, 'h', InMode)) +functions.append(f) + as_resource_body = """ return ResObj_New((Handle)_self->ob_itself); """ |