Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
8f0fab78
Kaydet (Commit)
8f0fab78
authored
Agu 15, 1997
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added support for WCTabHandle, AuxWinHandle, PixPatHandle: no reason
for blacklisting them.
üst
eaf3c9be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
5 deletions
+59
-5
Winmodule.c
Mac/Modules/win/Winmodule.c
+54
-0
winscan.py
Mac/Modules/win/winscan.py
+0
-3
winsupport.py
Mac/Modules/win/winsupport.py
+5
-2
No files found.
Mac/Modules/win/Winmodule.c
Dosyayı görüntüle @
8f0fab78
...
@@ -522,6 +522,22 @@ static PyObject *WinObj_TrackBox(_self, _args)
...
@@ -522,6 +522,22 @@ static PyObject *WinObj_TrackBox(_self, _args)
return
_res
;
return
_res
;
}
}
static
PyObject
*
WinObj_SetWinColor
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
WCTabHandle
newColorTable
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
ResObj_Convert
,
&
newColorTable
))
return
NULL
;
SetWinColor
(
_self
->
ob_itself
,
newColorTable
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyObject
*
WinObj_GetWVariant
(
_self
,
_args
)
static
PyObject
*
WinObj_GetWVariant
(
_self
,
_args
)
WindowObject
*
_self
;
WindowObject
*
_self
;
PyObject
*
_args
;
PyObject
*
_args
;
...
@@ -588,6 +604,23 @@ static PyObject *WinObj_DragWindow(_self, _args)
...
@@ -588,6 +604,23 @@ static PyObject *WinObj_DragWindow(_self, _args)
return
_res
;
return
_res
;
}
}
static
PyObject
*
WinObj_GetAuxWin
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
Boolean
_rv
;
AuxWinHandle
awHndl
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
_rv
=
GetAuxWin
(
_self
->
ob_itself
,
&
awHndl
);
_res
=
Py_BuildValue
(
"bO&"
,
_rv
,
ResObj_New
,
awHndl
);
return
_res
;
}
static
PyObject
*
WinObj_GetWindowPort
(
_self
,
_args
)
static
PyObject
*
WinObj_GetWindowPort
(
_self
,
_args
)
WindowObject
*
_self
;
WindowObject
*
_self
;
PyObject
*
_args
;
PyObject
*
_args
;
...
@@ -894,6 +927,8 @@ static PyMethodDef WinObj_methods[] = {
...
@@ -894,6 +927,8 @@ static PyMethodDef WinObj_methods[] = {
"(Point startPt, Rect bBox) -> (long _rv)"
},
"(Point startPt, Rect bBox) -> (long _rv)"
},
{
"TrackBox"
,
(
PyCFunction
)
WinObj_TrackBox
,
1
,
{
"TrackBox"
,
(
PyCFunction
)
WinObj_TrackBox
,
1
,
"(Point thePt, short partCode) -> (Boolean _rv)"
},
"(Point thePt, short partCode) -> (Boolean _rv)"
},
{
"SetWinColor"
,
(
PyCFunction
)
WinObj_SetWinColor
,
1
,
"(WCTabHandle newColorTable) -> None"
},
{
"GetWVariant"
,
(
PyCFunction
)
WinObj_GetWVariant
,
1
,
{
"GetWVariant"
,
(
PyCFunction
)
WinObj_GetWVariant
,
1
,
"() -> (short _rv)"
},
"() -> (short _rv)"
},
{
"SetWTitle"
,
(
PyCFunction
)
WinObj_SetWTitle
,
1
,
{
"SetWTitle"
,
(
PyCFunction
)
WinObj_SetWTitle
,
1
,
...
@@ -902,6 +937,8 @@ static PyMethodDef WinObj_methods[] = {
...
@@ -902,6 +937,8 @@ static PyMethodDef WinObj_methods[] = {
"(Point thePt) -> (Boolean _rv)"
},
"(Point thePt) -> (Boolean _rv)"
},
{
"DragWindow"
,
(
PyCFunction
)
WinObj_DragWindow
,
1
,
{
"DragWindow"
,
(
PyCFunction
)
WinObj_DragWindow
,
1
,
"(Point startPt, Rect boundsRect) -> None"
},
"(Point startPt, Rect boundsRect) -> None"
},
{
"GetAuxWin"
,
(
PyCFunction
)
WinObj_GetAuxWin
,
1
,
"() -> (Boolean _rv, AuxWinHandle awHndl)"
},
{
"GetWindowPort"
,
(
PyCFunction
)
WinObj_GetWindowPort
,
1
,
{
"GetWindowPort"
,
(
PyCFunction
)
WinObj_GetWindowPort
,
1
,
"() -> (CGrafPtr _rv)"
},
"() -> (CGrafPtr _rv)"
},
{
"SetPortWindowPort"
,
(
PyCFunction
)
WinObj_SetPortWindowPort
,
1
,
{
"SetPortWindowPort"
,
(
PyCFunction
)
WinObj_SetPortWindowPort
,
1
,
...
@@ -1204,6 +1241,21 @@ static PyObject *Win_GetCWMgrPort(_self, _args)
...
@@ -1204,6 +1241,21 @@ static PyObject *Win_GetCWMgrPort(_self, _args)
return
_res
;
return
_res
;
}
}
static
PyObject
*
Win_SetDeskCPat
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
PixPatHandle
deskPixPat
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
ResObj_Convert
,
&
deskPixPat
))
return
NULL
;
SetDeskCPat
(
deskPixPat
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyObject
*
Win_NewCWindow
(
_self
,
_args
)
static
PyObject
*
Win_NewCWindow
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_self
;
PyObject
*
_args
;
PyObject
*
_args
;
...
@@ -1302,6 +1354,8 @@ static PyMethodDef Win_methods[] = {
...
@@ -1302,6 +1354,8 @@ static PyMethodDef Win_methods[] = {
"(Rect theRect, Point thePt) -> (long _rv)"
},
"(Rect theRect, Point thePt) -> (long _rv)"
},
{
"GetCWMgrPort"
,
(
PyCFunction
)
Win_GetCWMgrPort
,
1
,
{
"GetCWMgrPort"
,
(
PyCFunction
)
Win_GetCWMgrPort
,
1
,
"() -> (CGrafPtr wMgrCPort)"
},
"() -> (CGrafPtr wMgrCPort)"
},
{
"SetDeskCPat"
,
(
PyCFunction
)
Win_SetDeskCPat
,
1
,
"(PixPatHandle deskPixPat) -> None"
},
{
"NewCWindow"
,
(
PyCFunction
)
Win_NewCWindow
,
1
,
{
"NewCWindow"
,
(
PyCFunction
)
Win_NewCWindow
,
1
,
"(Rect boundsRect, Str255 title, Boolean visible, short procID, WindowPtr behind, Boolean goAwayFlag, long refCon) -> (WindowPtr _rv)"
},
"(Rect boundsRect, Str255 title, Boolean visible, short procID, WindowPtr behind, Boolean goAwayFlag, long refCon) -> (WindowPtr _rv)"
},
{
"GetNewCWindow"
,
(
PyCFunction
)
Win_GetNewCWindow
,
1
,
{
"GetNewCWindow"
,
(
PyCFunction
)
Win_GetNewCWindow
,
1
,
...
...
Mac/Modules/win/winscan.py
Dosyayı görüntüle @
8f0fab78
...
@@ -37,9 +37,6 @@ class MyScanner(Scanner):
...
@@ -37,9 +37,6 @@ class MyScanner(Scanner):
def
makeblacklisttypes
(
self
):
def
makeblacklisttypes
(
self
):
return
[
return
[
'ProcPtr'
,
'ProcPtr'
,
'WCTabHandle'
,
'AuxWinHandle'
,
'PixPatHandle'
,
'DragGrayRgnUPP'
,
'DragGrayRgnUPP'
,
]
]
...
...
Mac/Modules/win/winsupport.py
Dosyayı görüntüle @
8f0fab78
...
@@ -34,6 +34,9 @@ GrafPtr = OpaqueByValueType("GrafPtr", "GrafObj")
...
@@ -34,6 +34,9 @@ GrafPtr = OpaqueByValueType("GrafPtr", "GrafObj")
RgnHandle
=
OpaqueByValueType
(
"RgnHandle"
,
"ResObj"
)
RgnHandle
=
OpaqueByValueType
(
"RgnHandle"
,
"ResObj"
)
PicHandle
=
OpaqueByValueType
(
"PicHandle"
,
"ResObj"
)
PicHandle
=
OpaqueByValueType
(
"PicHandle"
,
"ResObj"
)
WCTabHandle
=
OpaqueByValueType
(
"WCTabHandle"
,
"ResObj"
)
AuxWinHandle
=
OpaqueByValueType
(
"AuxWinHandle"
,
"ResObj"
)
PixPatHandle
=
OpaqueByValueType
(
"PixPatHandle"
,
"ResObj"
)
includestuff
=
includestuff
+
"""
includestuff
=
includestuff
+
"""
#include <
%
s>"""
%
MACHEADERFILE
+
"""
#include <
%
s>"""
%
MACHEADERFILE
+
"""
...
@@ -100,8 +103,8 @@ functions = []
...
@@ -100,8 +103,8 @@ functions = []
methods
=
[]
methods
=
[]
execfile
(
INPUTFILE
)
execfile
(
INPUTFILE
)
# Add
a manual routine
for converting integer WindowPtr's (as returned by
# Add
manual routines
for converting integer WindowPtr's (as returned by
# various event routines) to a WindowObject.
# various event routines)
and Dialog objects
to a WindowObject.
whichwin_body
=
"""
whichwin_body
=
"""
long ptr;
long ptr;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment