mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Added App module (appearance manager interface).
This commit is contained in:
parent
5b6334f210
commit
57ed139c22
3 changed files with 89 additions and 0 deletions
85
Mac/Lib/lib-toolbox/Appearance.py
Normal file
85
Mac/Lib/lib-toolbox/Appearance.py
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
# Generated from 'Moes:Codewarrior Pro 4:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Appearance.h'
|
||||
|
||||
def FOUR_CHAR_CODE(x): return x
|
||||
_AppearanceDispatch = 0xAA74
|
||||
gestaltAppearanceAttr = FOUR_CHAR_CODE('appr')
|
||||
gestaltAppearanceExists = 0
|
||||
gestaltAppearanceCompatMode = 1
|
||||
gestaltAppearanceVersion = FOUR_CHAR_CODE('apvr')
|
||||
kAppearanceEventClass = FOUR_CHAR_CODE('appr')
|
||||
kAEThemeSwitch = FOUR_CHAR_CODE('thme')
|
||||
appearanceBadBrushIndexErr = -30560
|
||||
appearanceProcessRegisteredErr = -30561
|
||||
appearanceProcessNotRegisteredErr = -30562
|
||||
appearanceBadTextColorIndexErr = -30563
|
||||
appearanceThemeHasNoAccents = -30564
|
||||
appearanceBadCursorIndexErr = -30565
|
||||
kThemeActiveDialogBackgroundBrush = 1
|
||||
kThemeInactiveDialogBackgroundBrush = 2
|
||||
kThemeActiveAlertBackgroundBrush = 3
|
||||
kThemeInactiveAlertBackgroundBrush = 4
|
||||
kThemeActiveModelessDialogBackgroundBrush = 5
|
||||
kThemeInactiveModelessDialogBackgroundBrush = 6
|
||||
kThemeActiveUtilityWindowBackgroundBrush = 7
|
||||
kThemeInactiveUtilityWindowBackgroundBrush = 8
|
||||
kThemeListViewSortColumnBackgroundBrush = 9
|
||||
kThemeListViewBackgroundBrush = 10
|
||||
kThemeIconLabelBackgroundBrush = 11
|
||||
kThemeListViewSeparatorBrush = 12
|
||||
kThemeChasingArrowsBrush = 13
|
||||
kThemeDragHiliteBrush = 14
|
||||
kThemeDocumentWindowBackgroundBrush = 15
|
||||
kThemeFinderWindowBackgroundBrush = 16
|
||||
kThemeActiveDialogTextColor = 1
|
||||
kThemeInactiveDialogTextColor = 2
|
||||
kThemeActiveAlertTextColor = 3
|
||||
kThemeInactiveAlertTextColor = 4
|
||||
kThemeActiveModelessDialogTextColor = 5
|
||||
kThemeInactiveModelessDialogTextColor = 6
|
||||
kThemeActiveWindowHeaderTextColor = 7
|
||||
kThemeInactiveWindowHeaderTextColor = 8
|
||||
kThemeActivePlacardTextColor = 9
|
||||
kThemeInactivePlacardTextColor = 10
|
||||
kThemePressedPlacardTextColor = 11
|
||||
kThemeActivePushButtonTextColor = 12
|
||||
kThemeInactivePushButtonTextColor = 13
|
||||
kThemePressedPushButtonTextColor = 14
|
||||
kThemeActiveBevelButtonTextColor = 15
|
||||
kThemeInactiveBevelButtonTextColor = 16
|
||||
kThemePressedBevelButtonTextColor = 17
|
||||
kThemeActivePopupButtonTextColor = 18
|
||||
kThemeInactivePopupButtonTextColor = 19
|
||||
kThemePressedPopupButtonTextColor = 20
|
||||
kThemeIconLabelTextColor = 21
|
||||
kThemeListViewTextColor = 22
|
||||
kThemeActiveDocumentWindowTitleTextColor = 23
|
||||
kThemeInactiveDocumentWindowTitleTextColor = 24
|
||||
kThemeActiveMovableModalWindowTitleTextColor = 25
|
||||
kThemeInactiveMovableModalWindowTitleTextColor = 26
|
||||
kThemeActiveUtilityWindowTitleTextColor = 27
|
||||
kThemeInactiveUtilityWindowTitleTextColor = 28
|
||||
kThemeActivePopupWindowTitleColor = 29
|
||||
kThemeInactivePopupWindowTitleColor = 30
|
||||
kThemeActiveRootMenuTextColor = 31
|
||||
kThemeSelectedRootMenuTextColor = 32
|
||||
kThemeDisabledRootMenuTextColor = 33
|
||||
kThemeActiveMenuItemTextColor = 34
|
||||
kThemeSelectedMenuItemTextColor = 35
|
||||
kThemeDisabledMenuItemTextColor = 36
|
||||
kThemeActivePopupLabelTextColor = 37
|
||||
kThemeInactivePopupLabelTextColor = 38
|
||||
kThemeStateDisabled = 0
|
||||
kThemeStateActive = 1
|
||||
kThemeStatePressed = 2
|
||||
kThemeMenuBarNormal = 0
|
||||
kThemeMenuBarSelected = 1
|
||||
kThemeMenuActive = 0
|
||||
kThemeMenuSelected = 1
|
||||
kThemeMenuDisabled = 3
|
||||
kThemeMenuTypePullDown = 0
|
||||
kThemeMenuTypePopUp = 1
|
||||
kThemeMenuTypeHierarchical = 2
|
||||
kThemeMenuItemPlain = 0
|
||||
kThemeMenuItemHierarchical = 1
|
||||
kThemeMenuItemScrollUpArrow = 2
|
||||
kThemeMenuItemScrollDownArrow = 3
|
||||
|
|
@ -100,6 +100,7 @@ extern void initmactcp();
|
|||
#define USE_CORE_TOOLBOX
|
||||
#endif
|
||||
extern void initAE();
|
||||
extern void initApp();
|
||||
extern void initEvt();
|
||||
extern void initFm();
|
||||
extern void initHelp();
|
||||
|
|
@ -221,6 +222,7 @@ struct _inittab _PyImport_Inittab[] = {
|
|||
#endif
|
||||
#ifdef USE_TOOLBOX
|
||||
{"AE", initAE},
|
||||
{"App", initApp},
|
||||
{"Evt", initEvt},
|
||||
{"Fm", initFm},
|
||||
{"Help", initHelp},
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@ I_PPC_PLUGINS : (buildmwproject, "CWIE", [
|
|||
(":Mac:Build:ColorPicker.prj", "ColorPicker.ppc"),
|
||||
(":Mac:Build:Printing.prj", "Printing.ppc"),
|
||||
(":Mac:Build:AE.prj", "AE.ppc"),
|
||||
(":Mac:Build:App.prj", "App.ppc"),
|
||||
(":Mac:Build:Cm.prj", "Cm.ppc"),
|
||||
(":Mac:Build:Evt.prj", "Evt.ppc"),
|
||||
(":Mac:Build:Fm.prj", "Fm.ppc"),
|
||||
|
|
@ -187,6 +188,7 @@ I_68K_PLUGINS : (buildmwproject, "CWIE", [
|
|||
(":Mac:Build:ColorPicker.prj", "ColorPicker.CFM68K"),
|
||||
(":Mac:Build:Printing.prj", "Printing.CFM68K"),
|
||||
(":Mac:Build:AE.prj", "AE.CFM68K"),
|
||||
(":Mac:Build:App.prj", "App.CFM68K"),
|
||||
(":Mac:Build:Cm.prj", "Cm.CFM68K"),
|
||||
(":Mac:Build:Evt.prj", "Evt.CFM68K"),
|
||||
(":Mac:Build:Fm.prj", "Fm.CFM68K"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue