mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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:
parent
7b912120ca
commit
a1a0fef2ea
10 changed files with 120 additions and 27 deletions
|
@ -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" */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue