home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 June / PCWorld_2005-06_cd.bin / software / vyzkuste / firewally / firewally.exe / framework-2.3.exe / Tkconstants.py < prev    next >
Text File  |  2003-12-30  |  1KB  |  106 lines

  1. # Symbolic constants for Tk
  2.  
  3. # Booleans
  4. NO=FALSE=OFF=0
  5. YES=TRUE=ON=1
  6.  
  7. # -anchor and -sticky
  8. N='n'
  9. S='s'
  10. W='w'
  11. E='e'
  12. NW='nw'
  13. SW='sw'
  14. NE='ne'
  15. SE='se'
  16. NS='ns'
  17. EW='ew'
  18. NSEW='nsew'
  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'
  39. SOLID = 'solid'
  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.  
  55. # -bordermode
  56. INSIDE='inside'
  57. OUTSIDE='outside'
  58.  
  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'
  67. ALL='all' # e.g. Canvas.delete(ALL)
  68.  
  69. # Text widget and button states
  70. NORMAL='normal'
  71. DISABLED='disabled'
  72. ACTIVE='active'
  73. # Canvas state
  74. HIDDEN='hidden'
  75.  
  76. # Menu item types
  77. CASCADE='cascade'
  78. CHECKBUTTON='checkbutton'
  79. COMMAND='command'
  80. RADIOBUTTON='radiobutton'
  81. SEPARATOR='separator'
  82.  
  83. # Selection modes for list boxes
  84. SINGLE='single'
  85. BROWSE='browse'
  86. MULTIPLE='multiple'
  87. EXTENDED='extended'
  88.  
  89. # Various canvas styles
  90. PIESLICE='pieslice'
  91. CHORD='chord'
  92. ARC='arc'
  93. FIRST='first'
  94. LAST='last'
  95. BUTT='butt'
  96. PROJECTING='projecting'
  97. ROUND='round'
  98. BEVEL='bevel'
  99. MITER='miter'
  100.  
  101. # Arguments to xview/yview
  102. MOVETO='moveto'
  103. SCROLL='scroll'
  104. UNITS='units'
  105. PAGES='pages'
  106.