home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pyos2bin.zip / Lib / lib-tk / Tkconstants.py < prev    next >
Text File  |  1997-12-16  |  1KB  |  80 lines

  1.  
  2. # Symbolic constants for Tk
  3.  
  4. # Booleans
  5. NO=FALSE=OFF=0
  6. YES=TRUE=ON=1
  7.  
  8. # -anchor
  9. N='n'
  10. S='s'
  11. W='w'
  12. E='e'
  13. NW='nw'
  14. SW='sw'
  15. NE='ne'
  16. SE='se'
  17. CENTER='center'
  18.  
  19. # -fill
  20. NONE='none'
  21. X='x'
  22. Y='y'
  23. BOTH='both'
  24.  
  25. # -side
  26. LEFT='left'
  27. TOP='top'
  28. RIGHT='right'
  29. BOTTOM='bottom'
  30.  
  31. # -relief
  32. RAISED='raised'
  33. SUNKEN='sunken'
  34. FLAT='flat'
  35. RIDGE='ridge'
  36. GROOVE='groove'
  37. SOLID = 'solid'
  38.  
  39. # -orient
  40. HORIZONTAL='horizontal'
  41. VERTICAL='vertical'
  42.  
  43. # -tabs
  44. NUMERIC='numeric'
  45.  
  46. # -wrap
  47. CHAR='char'
  48. WORD='word'
  49.  
  50. # -align
  51. BASELINE='baseline'
  52.  
  53. # Special tags, marks and insert positions
  54. SEL='sel'
  55. SEL_FIRST='sel.first'
  56. SEL_LAST='sel.last'
  57. END='end'
  58. INSERT='insert'
  59. CURRENT='current'
  60. ANCHOR='anchor'
  61. ALL='all' # e.g. Canvas.delete(ALL)
  62.  
  63. # Text widget and button states
  64. NORMAL='normal'
  65. DISABLED='disabled'
  66. ACTIVE='active'
  67.  
  68. # Menu item types
  69. CASCADE='cascade'
  70. CHECKBUTTON='checkbutton'
  71. COMMAND='command'
  72. RADIOBUTTON='radiobutton'
  73. SEPARATOR='separator'
  74.  
  75. # Selection modes for list boxes
  76. SINGLE='single'
  77. BROWSE='browse'
  78. MULTIPLE='multiple'
  79. EXTENDED='extended'
  80.