Mercurial > cpython-lru_cache-weakref
annotate Lib/lib-tk/Tkconstants.py @ 5817:48b94de85bf3 legacy-trunk
Extensive changes by AMK.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:29:42 +0000 |
| parents | c713de72e76e |
| children | 3c12c0d69e12 |
| rev | line source |
|---|---|
| 3072 | 1 # Symbolic constants for Tk |
| 2 | |
| 3 # Booleans | |
| 4 NO=FALSE=OFF=0 | |
| 5 YES=TRUE=ON=1 | |
| 6 | |
| 7 # -anchor | |
| 8 N='n' | |
| 9 S='s' | |
| 10 W='w' | |
| 11 E='e' | |
| 12 NW='nw' | |
| 13 SW='sw' | |
| 14 NE='ne' | |
| 15 SE='se' | |
| 16 CENTER='center' | |
| 17 | |
| 18 # -fill | |
| 19 NONE='none' | |
| 20 X='x' | |
| 21 Y='y' | |
| 22 BOTH='both' | |
| 23 | |
| 24 # -side | |
| 25 LEFT='left' | |
| 26 TOP='top' | |
| 27 RIGHT='right' | |
| 28 BOTTOM='bottom' | |
| 29 | |
| 30 # -relief | |
| 31 RAISED='raised' | |
| 32 SUNKEN='sunken' | |
| 33 FLAT='flat' | |
| 34 RIDGE='ridge' | |
| 35 GROOVE='groove' | |
| 36 | |
| 37 # -orient | |
| 38 HORIZONTAL='horizontal' | |
| 39 VERTICAL='vertical' | |
| 40 | |
| 41 # -tabs | |
| 42 NUMERIC='numeric' | |
| 43 | |
| 44 # -wrap | |
| 45 CHAR='char' | |
| 46 WORD='word' | |
| 47 | |
| 48 # -align | |
| 49 BASELINE='baseline' | |
| 50 | |
| 51 # Special tags, marks and insert positions | |
| 52 SEL='sel' | |
| 53 SEL_FIRST='sel.first' | |
| 54 SEL_LAST='sel.last' | |
| 55 END='end' | |
| 56 INSERT='insert' | |
| 57 CURRENT='current' | |
| 58 ANCHOR='anchor' | |
| 4561 | 59 ALL='all' # e.g. Canvas.delete(ALL) |
| 3072 | 60 |
| 61 # Text widget and button states | |
| 62 NORMAL='normal' | |
| 63 DISABLED='disabled' | |
| 64 ACTIVE='active' | |
| 65 | |
| 66 # Menu item types | |
| 67 CASCADE='cascade' | |
| 68 CHECKBUTTON='checkbutton' | |
| 69 COMMAND='command' | |
| 70 RADIOBUTTON='radiobutton' | |
| 71 SEPARATOR='separator' | |
|
3202
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
72 |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
73 # Selection modes for list boxes |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
74 SINGLE='single' |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
75 BROWSE='browse' |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
76 MULTIPLE='multiple' |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
77 EXTENDED='extended' |
