You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
1.5 KiB

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