Guido van Rossum | aad8692 | 1995-09-07 19:22:38 +0000 | [diff] [blame] | 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' |
| 59 | |
| 60 | # Text widget and button states |
| 61 | NORMAL='normal' |
| 62 | DISABLED='disabled' |
| 63 | ACTIVE='active' |
| 64 | |
| 65 | # Menu item types |
| 66 | CASCADE='cascade' |
| 67 | CHECKBUTTON='checkbutton' |
| 68 | COMMAND='command' |
| 69 | RADIOBUTTON='radiobutton' |
| 70 | SEPARATOR='separator' |
Guido van Rossum | b61b28b | 1995-10-11 17:40:37 +0000 | [diff] [blame] | 71 | |
| 72 | # Selection modes for list boxes |
| 73 | SINGLE='single' |
| 74 | BROWSE='browse' |
| 75 | MULTIPLE='multiple' |
| 76 | EXTENDED='extended' |