Unified handle-conversion scheme to

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.
This commit is contained in:
Jack Jansen 1999-12-23 14:32:06 +00:00
parent 7b912120ca
commit a1a0fef2ea
10 changed files with 120 additions and 27 deletions

View file

@ -45,6 +45,7 @@ includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """
#define as_Control(h) ((ControlHandle)h)
#define as_Resource(ctl) ((Handle)ctl)
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */