mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Added Ctl.as_Control and Menu.as_Menu methods, which take a resource as
argument and return a Control or Menu object.
This commit is contained in:
parent
b0687899d7
commit
e058189040
6 changed files with 52 additions and 0 deletions
|
@ -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);
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue