commit | e058189040dcaf951c34d66f99eeb7e4ee91af6a | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Sun Feb 07 14:02:03 1999 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Sun Feb 07 14:02:03 1999 +0000 |
tree | 673cb8b9538f0573222f3577597709bd442a84e5 | |
parent | b0687899d7a84c09f00bcf492e76eee3a44143b3 [diff] [blame] |
Added Ctl.as_Control and Menu.as_Menu methods, which take a resource as argument and return a Control or Menu object.
diff --git a/Mac/Modules/ctl/ctledit.py b/Mac/Modules/ctl/ctledit.py index a23eef8..97534e2 100644 --- a/Mac/Modules/ctl/ctledit.py +++ b/Mac/Modules/ctl/ctledit.py
@@ -1,3 +1,7 @@ +f = Function(ControlHandle, 'as_Control', + (Handle, 'h', InMode)) +functions.append(f) + as_resource_body = """ return ResObj_New((Handle)_self->ob_itself); """