diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-09-23 15:48:46 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-09-23 15:48:46 (GMT) |
commit | d96cb5088a41d218bfa6e4db444fc4b671c00c9b (patch) | |
tree | 186b1c1ede29a3992e71180f094c10774cd03f1d /Mac/Modules/dlg/dlgsupport.py | |
parent | 0d1069e42fe5ec73954a48c910e0e89ce663f829 (diff) | |
download | cpython-d96cb5088a41d218bfa6e4db444fc4b671c00c9b.zip cpython-d96cb5088a41d218bfa6e4db444fc4b671c00c9b.tar.gz cpython-d96cb5088a41d218bfa6e4db444fc4b671c00c9b.tar.bz2 |
Added support for GetDialogWindow and other accessor functions
Diffstat (limited to 'Mac/Modules/dlg/dlgsupport.py')
-rw-r--r-- | Mac/Modules/dlg/dlgsupport.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Mac/Modules/dlg/dlgsupport.py b/Mac/Modules/dlg/dlgsupport.py index ca4e0df..14bef36 100644 --- a/Mac/Modules/dlg/dlgsupport.py +++ b/Mac/Modules/dlg/dlgsupport.py @@ -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() |