1
0

Tkconstants.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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'