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