diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-30 22:04:23 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-30 22:04:23 (GMT) |
commit | 60087fb45092d9c199cea162e58d9193c7c1558c (patch) | |
tree | 05f3343e7707c4a4179e409506b39601279f04c1 /Lib/plat-mac/Carbon/Dialogs.py | |
parent | c262a1f51ce89dbea4aeb072cf631686c47ed97f (diff) | |
download | cpython-60087fb45092d9c199cea162e58d9193c7c1558c.zip cpython-60087fb45092d9c199cea162e58d9193c7c1558c.tar.gz cpython-60087fb45092d9c199cea162e58d9193c7c1558c.tar.bz2 |
Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on
Mac OS X). The only items remaining in Mac/Lib are modules that are
meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences
in resources, etc).
Diffstat (limited to 'Lib/plat-mac/Carbon/Dialogs.py')
-rw-r--r-- | Lib/plat-mac/Carbon/Dialogs.py | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/Lib/plat-mac/Carbon/Dialogs.py b/Lib/plat-mac/Carbon/Dialogs.py new file mode 100644 index 0000000..dbb69dc --- /dev/null +++ b/Lib/plat-mac/Carbon/Dialogs.py @@ -0,0 +1,76 @@ +# Generated from 'Dialogs.h' + +def FOUR_CHAR_CODE(x): return x +kControlDialogItem = 4 +kButtonDialogItem = kControlDialogItem | 0 +kCheckBoxDialogItem = kControlDialogItem | 1 +kRadioButtonDialogItem = kControlDialogItem | 2 +kResourceControlDialogItem = kControlDialogItem | 3 +kStaticTextDialogItem = 8 +kEditTextDialogItem = 16 +kIconDialogItem = 32 +kPictureDialogItem = 64 +kUserDialogItem = 0 +kHelpDialogItem = 1 +kItemDisableBit = 128 +ctrlItem = 4 +btnCtrl = 0 +chkCtrl = 1 +radCtrl = 2 +resCtrl = 3 +statText = 8 +editText = 16 +iconItem = 32 +picItem = 64 +userItem = 0 +itemDisable = 128 +kStdOkItemIndex = 1 +kStdCancelItemIndex = 2 +ok = kStdOkItemIndex +cancel = kStdCancelItemIndex +kStopIcon = 0 +kNoteIcon = 1 +kCautionIcon = 2 +stopIcon = kStopIcon +noteIcon = kNoteIcon +cautionIcon = kCautionIcon +kOkItemIndex = 1 +kCancelItemIndex = 2 +overlayDITL = 0 +appendDITLRight = 1 +appendDITLBottom = 2 +kAlertStopAlert = 0 +kAlertNoteAlert = 1 +kAlertCautionAlert = 2 +kAlertPlainAlert = 3 +kAlertDefaultOKText = -1 +kAlertDefaultCancelText = -1 +kAlertDefaultOtherText = -1 +kAlertStdAlertOKButton = 1 +kAlertStdAlertCancelButton = 2 +kAlertStdAlertOtherButton = 3 +kAlertStdAlertHelpButton = 4 +kDialogFlagsUseThemeBackground = (1 << 0) +kDialogFlagsUseControlHierarchy = (1 << 1) +kDialogFlagsHandleMovableModal = (1 << 2) +kDialogFlagsUseThemeControls = (1 << 3) +kAlertFlagsUseThemeBackground = (1 << 0) +kAlertFlagsUseControlHierarchy = (1 << 1) +kAlertFlagsAlertIsMovable = (1 << 2) +kAlertFlagsUseThemeControls = (1 << 3) +kDialogFontNoFontStyle = 0 +kDialogFontUseFontMask = 0x0001 +kDialogFontUseFaceMask = 0x0002 +kDialogFontUseSizeMask = 0x0004 +kDialogFontUseForeColorMask = 0x0008 +kDialogFontUseBackColorMask = 0x0010 +kDialogFontUseModeMask = 0x0020 +kDialogFontUseJustMask = 0x0040 +kDialogFontUseAllMask = 0x00FF +kDialogFontAddFontSizeMask = 0x0100 +kDialogFontUseFontNameMask = 0x0200 +kDialogFontAddToMetaFontMask = 0x0400 +kDialogFontUseThemeFontIDMask = 0x0080 +kHICommandOther = FOUR_CHAR_CODE('othr') +kStdCFStringAlertVersionOne = 1 +kStdAlertDoNotDisposeSheet = 1 << 0 |