mirror of
https://github.com/python/cpython.git
synced 2025-09-12 19:57:40 +00:00

handle = Ctl.as_Resource(ctl) ctl = Ctl.as_Control(handle) and similarly for List, Menu, TE. The old handle.as_Control() methods are still there for backward compatability.
46 lines
999 B
Python
46 lines
999 B
Python
f = Function(void, 'OpenDeskAcc',
|
|
(Str255, 'name', InMode),
|
|
)
|
|
functions.append(f)
|
|
|
|
f = Function(MenuHandle, 'as_Menu', (Handle, 'h', InMode))
|
|
functions.append(f)
|
|
|
|
f = Method(Handle, 'as_Resource', (MenuHandle, 'h', InMode))
|
|
methods.append(f)
|
|
|
|
# The following have "Mac" prepended to their names in the include file
|
|
# since UH 3.1, sigh...
|
|
f = Function(MenuHandle, 'GetMenu',
|
|
(short, 'resourceID', InMode),
|
|
)
|
|
functions.append(f)
|
|
|
|
f = Method(void, 'AppendMenu',
|
|
(MenuHandle, 'menu', InMode),
|
|
(ConstStr255Param, 'data', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Method(void, 'InsertMenu',
|
|
(MenuHandle, 'theMenu', InMode),
|
|
(short, 'beforeID', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Function(void, 'DeleteMenu',
|
|
(short, 'menuID', InMode),
|
|
)
|
|
functions.append(f)
|
|
|
|
f = Method(void, 'InsertMenuItem',
|
|
(MenuHandle, 'theMenu', InMode),
|
|
(ConstStr255Param, 'itemString', InMode),
|
|
(short, 'afterItem', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Function(void, 'DrawMenuBar',
|
|
)
|
|
functions.append(f)
|
|
|