mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Added support for GetDialogWindow and other accessor functions
This commit is contained in:
parent
0d1069e42f
commit
d96cb5088a
2 changed files with 93 additions and 0 deletions
|
|
@ -129,6 +129,20 @@ execfile("dlggen.py")
|
|||
for f in functions: module.add(f)
|
||||
for f in methods: object.add(f)
|
||||
|
||||
# Some methods that are currently macro's in C, but will be real routines
|
||||
# in MacOS 8.
|
||||
|
||||
f = Method(ExistingDialogPtr, 'GetDialogWindow', (DialogRef, 'dialog', InMode))
|
||||
object.add(f)
|
||||
f = Method(SInt16, 'GetDialogDefaultItem', (DialogRef, 'dialog', InMode))
|
||||
object.add(f)
|
||||
f = Method(SInt16, 'GetDialogCancelItem', (DialogRef, 'dialog', InMode))
|
||||
object.add(f)
|
||||
f = Method(SInt16, 'GetDialogKeyboardFocusItem', (DialogRef, 'dialog', InMode))
|
||||
object.add(f)
|
||||
f = Method(void, 'SetGrafPortOfDialog', (DialogRef, 'dialog', InMode))
|
||||
object.add(f)
|
||||
|
||||
# generate output
|
||||
SetOutputFileName('Dlgmodule.c')
|
||||
module.generate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue