mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
Adapted to Universal Headers 3.3.2. More to follow.
This commit is contained in:
parent
c6c2838403
commit
f7d5aa61d3
28 changed files with 3445 additions and 957 deletions
|
|
@ -32,6 +32,8 @@
|
|||
DragConstraint = Type("DragConstraint", "H")
|
||||
ControlVariant = Type("ControlVariant", "h")
|
||||
IconTransformType = Type("IconTransformType", "h")
|
||||
EventModifiers = Type("EventModifiers", "H")
|
||||
ClickActivationResult = Type("ClickActivationResult", "l")
|
||||
ControlButtonGraphicAlignment = Type("ControlButtonGraphicAlignment", "h")
|
||||
ControlButtonTextAlignment = Type("ControlButtonTextAlignment", "h")
|
||||
ControlButtonTextPlacement = Type("ControlButtonTextPlacement", "h")
|
||||
|
|
@ -40,9 +42,14 @@
|
|||
|
||||
ControlFontStyleRec = OpaqueType('ControlFontStyleRec', 'ControlFontStyle')
|
||||
ControlFontStyleRec_ptr = ControlFontStyleRec
|
||||
ControlID = OpaqueType('ControlID', 'PyControlID')
|
||||
ControlID_ptr = ControlID
|
||||
|
||||
includestuff = includestuff + """
|
||||
#include <%s>""" % MACHEADERFILE + """
|
||||
#ifndef kControlCheckBoxUncheckedValue
|
||||
#include <ControlDefinitions.h>
|
||||
#endif
|
||||
|
||||
staticforward PyObject *CtlObj_WhichControl(ControlHandle);
|
||||
|
||||
|
|
@ -80,6 +87,26 @@
|
|||
QdRGB_Convert, &itself->backColor);
|
||||
}
|
||||
|
||||
/*
|
||||
** Parse/generate ControlID records
|
||||
*/
|
||||
static PyObject *
|
||||
PyControlID_New(itself)
|
||||
ControlID *itself;
|
||||
{
|
||||
|
||||
return Py_BuildValue("O&l", PyMac_BuildOSType, itself->signature, itself->id);
|
||||
}
|
||||
|
||||
static int
|
||||
PyControlID_Convert(v, itself)
|
||||
PyObject *v;
|
||||
ControlID *itself;
|
||||
{
|
||||
return PyArg_ParseTuple(v, "O&l", PyMac_GetOSType, &itself->signature, &itself->id);
|
||||
}
|
||||
|
||||
|
||||
/* TrackControl and HandleControlClick callback support */
|
||||
static PyObject *tracker;
|
||||
static ControlActionUPP mytracker_upp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue