Mercurial > cpython-lru_cache-weakref
annotate Lib/tkinter/constants.py @ 79691:05c8928362ee
Merge __next__ method link fixes with 3.3.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Fri, 12 Oct 2012 13:46:37 +0300 |
| parents | d63344ba1878 |
| children |
| rev | line source |
|---|---|
| 3072 | 1 # Symbolic constants for Tk |
| 2 | |
| 3 # Booleans | |
| 4 NO=FALSE=OFF=0 | |
| 5 YES=TRUE=ON=1 | |
| 6 | |
|
9183
8e952bdd0fa3
Added NS and EW constants, which are meaningful values for grid's
Barry Warsaw <barry@python.org>
parents:
6882
diff
changeset
|
7 # -anchor and -sticky |
| 3072 | 8 N='n' |
| 9 S='s' | |
| 10 W='w' | |
| 11 E='e' | |
| 12 NW='nw' | |
| 13 SW='sw' | |
| 14 NE='ne' | |
| 15 SE='se' | |
|
9183
8e952bdd0fa3
Added NS and EW constants, which are meaningful values for grid's
Barry Warsaw <barry@python.org>
parents:
6882
diff
changeset
|
16 NS='ns' |
|
8e952bdd0fa3
Added NS and EW constants, which are meaningful values for grid's
Barry Warsaw <barry@python.org>
parents:
6882
diff
changeset
|
17 EW='ew' |
|
9190
3e0c87bdb588
NSEW is also valid for -sticky
Barry Warsaw <barry@python.org>
parents:
9183
diff
changeset
|
18 NSEW='nsew' |
| 3072 | 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' | |
|
6882
3c12c0d69e12
Added SOLID definition.
Guido van Rossum <guido@python.org>
parents:
4561
diff
changeset
|
39 SOLID = 'solid' |
| 3072 | 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 | |
|
13908
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
55 # -bordermode |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
56 INSIDE='inside' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
57 OUTSIDE='outside' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
58 |
| 3072 | 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' | |
| 4561 | 67 ALL='all' # e.g. Canvas.delete(ALL) |
| 3072 | 68 |
| 69 # Text widget and button states | |
| 70 NORMAL='normal' | |
| 71 DISABLED='disabled' | |
| 72 ACTIVE='active' | |
|
30110
92d68083a0fd
Add HIDDEN. Fixes #777664.
Martin v. Löwis <martin@v.loewis.de>
parents:
13908
diff
changeset
|
73 # Canvas state |
|
92d68083a0fd
Add HIDDEN. Fixes #777664.
Martin v. Löwis <martin@v.loewis.de>
parents:
13908
diff
changeset
|
74 HIDDEN='hidden' |
| 3072 | 75 |
| 76 # Menu item types | |
| 77 CASCADE='cascade' | |
| 78 CHECKBUTTON='checkbutton' | |
| 79 COMMAND='command' | |
| 80 RADIOBUTTON='radiobutton' | |
| 81 SEPARATOR='separator' | |
|
3202
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
82 |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
83 # Selection modes for list boxes |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
84 SINGLE='single' |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
85 BROWSE='browse' |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
86 MULTIPLE='multiple' |
|
6491bd2bbdef
added listbox selection modes
Guido van Rossum <guido@python.org>
parents:
3072
diff
changeset
|
87 EXTENDED='extended' |
|
13908
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
88 |
|
30458
61dba0aa9e37
Patch #805976: Add DOTBOX and UNDERLINE.
Martin v. Löwis <martin@v.loewis.de>
parents:
30110
diff
changeset
|
89 # Activestyle for list boxes |
|
61dba0aa9e37
Patch #805976: Add DOTBOX and UNDERLINE.
Martin v. Löwis <martin@v.loewis.de>
parents:
30110
diff
changeset
|
90 # NONE='none' is also valid |
|
61dba0aa9e37
Patch #805976: Add DOTBOX and UNDERLINE.
Martin v. Löwis <martin@v.loewis.de>
parents:
30110
diff
changeset
|
91 DOTBOX='dotbox' |
|
61dba0aa9e37
Patch #805976: Add DOTBOX and UNDERLINE.
Martin v. Löwis <martin@v.loewis.de>
parents:
30110
diff
changeset
|
92 UNDERLINE='underline' |
|
61dba0aa9e37
Patch #805976: Add DOTBOX and UNDERLINE.
Martin v. Löwis <martin@v.loewis.de>
parents:
30110
diff
changeset
|
93 |
|
13908
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
94 # Various canvas styles |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
95 PIESLICE='pieslice' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
96 CHORD='chord' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
97 ARC='arc' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
98 FIRST='first' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
99 LAST='last' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
100 BUTT='butt' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
101 PROJECTING='projecting' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
102 ROUND='round' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
103 BEVEL='bevel' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
104 MITER='miter' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
105 |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
106 # Arguments to xview/yview |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
107 MOVETO='moveto' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
108 SCROLL='scroll' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
109 UNITS='units' |
|
52757baf030d
-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh <fredrik@pythonware.com>
parents:
13903
diff
changeset
|
110 PAGES='pages' |
