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:
Jack Jansen 1999-02-07 14:02:03 +00:00
parent b0687899d7
commit e058189040
6 changed files with 52 additions and 0 deletions

View file

@ -32,6 +32,8 @@ includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
#define as_Menu(h) ((MenuHandle)h)
"""
class MyObjectDefinition(GlobalObjectDefinition):