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 | |
Barry Warsaw | 9190046 | 1998-10-01 13:49:37 +0000 | [diff] [blame] | 7 | # -anchor and -sticky |
Guido van Rossum | aad8692 | 1995-09-07 19:22:38 +0000 | [diff] [blame] | 8 | N='n' |
| 9 | S='s' |
| 10 | W='w' |
| 11 | E='e' |
| 12 | NW='nw' |
| 13 | SW='sw' |
| 14 | NE='ne' |
| 15 | SE='se' |
Barry Warsaw | 9190046 | 1998-10-01 13:49:37 +0000 | [diff] [blame] | 16 | NS='ns' |
| 17 | EW='ew' |
Barry Warsaw | 4cbe387 | 1998-10-01 15:54:48 +0000 | [diff] [blame] | 18 | NSEW='nsew' |
Guido van Rossum | aad8692 | 1995-09-07 19:22:38 +0000 | [diff] [blame] | 19 | CENTER='center' |
| 20 | |
| 21 | # -fill |
| 22 | NONE='none' |
| 23 | X='x' |
| 24 | Y='y' |
| 25 | BOTH='both' |
| 26 | |
| 27 | # -side |
| 28 | LEFT='left' |
| 29 | TOP='top' |
| 30 | RIGHT='right' |
| 31 | BOTTOM='bottom' |
| 32 | |
| 33 | # -relief |
| 34 | RAISED='raised' |
| 35 | SUNKEN='sunken' |
| 36 | FLAT='flat' |
| 37 | RIDGE='ridge' |
| 38 | GROOVE='groove' |
Guido van Rossum | fedc6d0 | 1997-12-16 17:54:18 +0000 | [diff] [blame] | 39 | SOLID = 'solid' |
Guido van Rossum | aad8692 | 1995-09-07 19:22:38 +0000 | [diff] [blame] | 40 | |
| 41 | # -orient |
| 42 | HORIZONTAL='horizontal' |
| 43 | VERTICAL='vertical' |
| 44 | |
| 45 | # -tabs |
| 46 | NUMERIC='numeric' |
| 47 | |
| 48 | # -wrap |
| 49 | CHAR='char' |
| 50 | WORD='word' |
| 51 | |
| 52 | # -align |
| 53 | BASELINE='baseline' |
| 54 | |
Fredrik Lundh | 46a4151 | 2000-08-09 19:37:16 +0000 | [diff] [blame] | 55 | # -bordermode |
| 56 | INSIDE='inside' |
| 57 | OUTSIDE='outside' |
| 58 | |
Guido van Rossum | aad8692 | 1995-09-07 19:22:38 +0000 | [diff] [blame] | 59 | # Special tags, marks and insert positions |
| 60 | SEL='sel' |
| 61 | SEL_FIRST='sel.first' |
| 62 | SEL_LAST='sel.last' |
| 63 | END='end' |
| 64 | INSERT='insert' |
| 65 | CURRENT='current' |
| 66 | ANCHOR='anchor' |
Guido van Rossum | 40a172c | 1996-11-20 22:20:21 +0000 | [diff] [blame] | 67 | ALL='all' # e.g. Canvas.delete(ALL) |
Guido van Rossum | aad8692 | 1995-09-07 19:22:38 +0000 | [diff] [blame] | 68 | |
| 69 | # Text widget and button states |
| 70 | NORMAL='normal' |
| 71 | DISABLED='disabled' |
| 72 | ACTIVE='active' |
Martin v. Löwis | 39a682f | 2003-08-09 09:53:51 +0000 | [diff] [blame] | 73 | # Canvas state |
| 74 | HIDDEN='hidden' |
Guido van Rossum | aad8692 | 1995-09-07 19:22:38 +0000 | [diff] [blame] | 75 | |
| 76 | # Menu item types |
| 77 | CASCADE='cascade' |
| 78 | CHECKBUTTON='checkbutton' |
| 79 | COMMAND='command' |
| 80 | RADIOBUTTON='radiobutton' |
| 81 | SEPARATOR='separator' |
Guido van Rossum | b61b28b | 1995-10-11 17:40:37 +0000 | [diff] [blame] | 82 | |
| 83 | # Selection modes for list boxes |
| 84 | SINGLE='single' |
| 85 | BROWSE='browse' |
| 86 | MULTIPLE='multiple' |
| 87 | EXTENDED='extended' |
Fredrik Lundh | 46a4151 | 2000-08-09 19:37:16 +0000 | [diff] [blame] | 88 | |
Martin v. Löwis | cb3062e | 2003-09-20 10:52:56 +0000 | [diff] [blame] | 89 | # Activestyle for list boxes |
| 90 | # NONE='none' is also valid |
| 91 | DOTBOX='dotbox' |
| 92 | UNDERLINE='underline' |
| 93 | |
Fredrik Lundh | 46a4151 | 2000-08-09 19:37:16 +0000 | [diff] [blame] | 94 | # Various canvas styles |
| 95 | PIESLICE='pieslice' |
| 96 | CHORD='chord' |
| 97 | ARC='arc' |
| 98 | FIRST='first' |
| 99 | LAST='last' |
| 100 | BUTT='butt' |
| 101 | PROJECTING='projecting' |
| 102 | ROUND='round' |
| 103 | BEVEL='bevel' |
| 104 | MITER='miter' |
| 105 | |
| 106 | # Arguments to xview/yview |
| 107 | MOVETO='moveto' |
| 108 | SCROLL='scroll' |
| 109 | UNITS='units' |
| 110 | PAGES='pages' |