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
cdcbd1f0
Kaydet (Commit)
cdcbd1f0
authored
Eki 22, 1998
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added {Get,Set}WindowUserData methods.
üst
3dd1c39c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
6 deletions
+44
-6
Winmodule.c
Mac/Modules/win/Winmodule.c
+34
-3
winedit.py
Mac/Modules/win/winedit.py
+10
-0
winsupport.py
Mac/Modules/win/winsupport.py
+0
-3
No files found.
Mac/Modules/win/Winmodule.c
Dosyayı görüntüle @
cdcbd1f0
...
@@ -46,9 +46,6 @@ extern PyObject *WinObj_WhichWindow(WindowPtr);
...
@@ -46,9 +46,6 @@ extern PyObject *WinObj_WhichWindow(WindowPtr);
#define resNotFound -192
/* Can't include <Errors.h> because of Python's "errors.h" */
#define resNotFound -192
/* Can't include <Errors.h> because of Python's "errors.h" */
#ifdef HAVE_UNIVERSAL_HEADERS
#define WindowPeek WindowPtr
#endif
static
PyObject
*
Win_Error
;
static
PyObject
*
Win_Error
;
...
@@ -967,6 +964,36 @@ static PyObject *WinObj_SetWindowUserState(_self, _args)
...
@@ -967,6 +964,36 @@ static PyObject *WinObj_SetWindowUserState(_self, _args)
return
_res
;
return
_res
;
}
}
static
PyObject
*
WinObj_GetWindowDataHandle
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
Handle
_rv
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
_rv
=
GetWindowDataHandle
(
_self
->
ob_itself
);
_res
=
Py_BuildValue
(
"O&"
,
ResObj_New
,
_rv
);
return
_res
;
}
static
PyObject
*
WinObj_SetWindowDataHandle
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
Handle
data
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
ResObj_Convert
,
&
data
))
return
NULL
;
SetWindowDataHandle
(
_self
->
ob_itself
,
data
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyObject
*
WinObj_CloseWindow
(
_self
,
_args
)
static
PyObject
*
WinObj_CloseWindow
(
_self
,
_args
)
WindowObject
*
_self
;
WindowObject
*
_self
;
PyObject
*
_args
;
PyObject
*
_args
;
...
@@ -1128,6 +1155,10 @@ static PyMethodDef WinObj_methods[] = {
...
@@ -1128,6 +1155,10 @@ static PyMethodDef WinObj_methods[] = {
"(Rect r) -> None"
},
"(Rect r) -> None"
},
{
"SetWindowUserState"
,
(
PyCFunction
)
WinObj_SetWindowUserState
,
1
,
{
"SetWindowUserState"
,
(
PyCFunction
)
WinObj_SetWindowUserState
,
1
,
"(Rect r) -> None"
},
"(Rect r) -> None"
},
{
"GetWindowDataHandle"
,
(
PyCFunction
)
WinObj_GetWindowDataHandle
,
1
,
"() -> (Handle _rv)"
},
{
"SetWindowDataHandle"
,
(
PyCFunction
)
WinObj_SetWindowDataHandle
,
1
,
"(Handle data) -> None"
},
{
"CloseWindow"
,
(
PyCFunction
)
WinObj_CloseWindow
,
1
,
{
"CloseWindow"
,
(
PyCFunction
)
WinObj_CloseWindow
,
1
,
"() -> None"
},
"() -> None"
},
{
"MoveWindow"
,
(
PyCFunction
)
WinObj_MoveWindow
,
1
,
{
"MoveWindow"
,
(
PyCFunction
)
WinObj_MoveWindow
,
1
,
...
...
Mac/Modules/win/winedit.py
Dosyayı görüntüle @
cdcbd1f0
...
@@ -96,6 +96,16 @@ f = Method(void, 'SetWindowUserState',
...
@@ -96,6 +96,16 @@ f = Method(void, 'SetWindowUserState',
)
)
methods
.
append
(
f
)
methods
.
append
(
f
)
f
=
Method
(
Handle
,
'GetWindowDataHandle'
,
(
WindowRef
,
'theWindow'
,
InMode
),
)
methods
.
append
(
f
)
f
=
Method
(
void
,
'SetWindowDataHandle'
,
(
WindowRef
,
'theWindow'
,
InMode
),
(
Handle
,
'data'
,
InMode
),
)
methods
.
append
(
f
)
# These have Mac prefixed to their name in the 3.1 universal headers,
# These have Mac prefixed to their name in the 3.1 universal headers,
# so we add the old/real names by hand.
# so we add the old/real names by hand.
f
=
Method
(
void
,
'CloseWindow'
,
f
=
Method
(
void
,
'CloseWindow'
,
...
...
Mac/Modules/win/winsupport.py
Dosyayı görüntüle @
cdcbd1f0
...
@@ -42,9 +42,6 @@ includestuff = includestuff + """
...
@@ -42,9 +42,6 @@ includestuff = includestuff + """
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
#ifdef HAVE_UNIVERSAL_HEADERS
#define WindowPeek WindowPtr
#endif
"""
"""
finalstuff
=
finalstuff
+
"""
finalstuff
=
finalstuff
+
"""
...
...
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