Mercurial > cpython-lru_cache-weakref
annotate Mac/Lib/MACFS.py @ 4566:6403c94de50d legacy-trunk
Added safeguard against failure in __del__.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 27 Nov 1996 19:39:58 +0000 |
| parents | 43ea2c8b3286 |
| children | 44356ee7e579 |
| rev | line source |
|---|---|
|
3038
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1 # MACFS.py - Constants used by macfs routines |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
2 # Derived from Finder.h and Folders.h |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
3 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
4 # Flags in FInfo.Flags field: |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
5 kIsOnDesk = 0x1 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
6 kColor = 0xE |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
7 kIsShared = 0x40 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
8 kHasBeenInited = 0x100 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
9 kHasCustomIcon = 0x400 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
10 kIsStationery = 0x800 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
11 kIsStationary = 0x800 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
12 kNameLocked = 0x1000 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
13 kHasBundle = 0x2000 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
14 kIsInvisible = 0x4000 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
15 kIsAlias = 0x8000 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
16 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
17 # Constants for FindFolder |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
18 kOnSystemDisk = 0x8000 |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
19 kSystemFolderType = 'macs' # the system folder |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
20 kDesktopFolderType = 'desk' # the desktop folder; objects in this folder show on the desk top. |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
21 kTrashFolderType = 'trsh' # the trash folder; objects in this folder show up in the trash |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
22 kWhereToEmptyTrashFolderType = 'empt' # the "empty trash" folder; Finder starts empty from here down |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
23 kPrintMonitorDocsFolderType = 'prnt' # Print Monitor documents |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
24 kStartupFolderType = 'strt' # Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
25 kAppleMenuFolderType = 'amnu' # Finder objects to put into the Apple menu go here |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
26 kControlPanelFolderType = 'ctrl' # Control Panels go here (may contain INITs) |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
27 kExtensionFolderType = 'extn' # Finder extensions go here |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
28 kFontsFolderType = 'font' # Fonts go here |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
29 kPreferencesFolderType = 'pref' # preferences for applications go here |
|
43ea2c8b3286
Constants useful when using macfs module
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
30 kTemporaryFolderType = 'temp' |
