Guido van Rossum | 1ce7c6f | 1997-01-15 19:19:19 +0000 | [diff] [blame] | 1 | # Constants used by the FORMS library (module fl). |
| 2 | # This corresponds to "forms.h". |
| 3 | # Recommended use: import FL; ... FL.NORMAL_BOX ... etc. |
| 4 | # Alternate use: from FL import *; ... NORMAL_BOX ... etc. |
| 5 | |
| 6 | _v20 = 1 |
| 7 | _v21 = 1 |
| 8 | ##import fl |
| 9 | ##try: |
Fred Drake | 132dce2 | 2000-12-12 23:11:42 +0000 | [diff] [blame] | 10 | ## _v20 = (fl.get_rgbmode is not None) |
Guido van Rossum | 1ce7c6f | 1997-01-15 19:19:19 +0000 | [diff] [blame] | 11 | ##except: |
| 12 | ## _v20 = 0 |
| 13 | ##del fl |
| 14 | |
| 15 | NULL = 0 |
| 16 | FALSE = 0 |
| 17 | TRUE = 1 |
| 18 | |
| 19 | EVENT = -1 |
| 20 | |
| 21 | LABEL_SIZE = 64 |
| 22 | if _v20: |
| 23 | SHORTCUT_SIZE = 32 |
| 24 | PLACE_FREE = 0 |
| 25 | PLACE_SIZE = 1 |
| 26 | PLACE_ASPECT = 2 |
| 27 | PLACE_MOUSE = 3 |
| 28 | PLACE_CENTER = 4 |
| 29 | PLACE_POSITION = 5 |
| 30 | FL_PLACE_FULLSCREEN = 6 |
| 31 | FIND_INPUT = 0 |
| 32 | FIND_AUTOMATIC = 1 |
| 33 | FIND_MOUSE = 2 |
| 34 | BEGIN_GROUP = 10000 |
| 35 | END_GROUP = 20000 |
| 36 | ALIGN_TOP = 0 |
| 37 | ALIGN_BOTTOM = 1 |
| 38 | ALIGN_LEFT = 2 |
| 39 | ALIGN_RIGHT = 3 |
| 40 | ALIGN_CENTER = 4 |
| 41 | NO_BOX = 0 |
| 42 | UP_BOX = 1 |
| 43 | DOWN_BOX = 2 |
| 44 | FLAT_BOX = 3 |
| 45 | BORDER_BOX = 4 |
| 46 | SHADOW_BOX = 5 |
| 47 | FRAME_BOX = 6 |
| 48 | ROUNDED_BOX = 7 |
| 49 | RFLAT_BOX = 8 |
| 50 | RSHADOW_BOX = 9 |
| 51 | TOP_BOUND_COL = 51 |
| 52 | LEFT_BOUND_COL = 55 |
| 53 | BOT_BOUND_COL = 40 |
| 54 | RIGHT_BOUND_COL = 35 |
| 55 | COL1 = 47 |
| 56 | MCOL = 49 |
| 57 | LCOL = 0 |
| 58 | BOUND_WIDTH = 3.0 |
| 59 | DRAW = 0 |
| 60 | PUSH = 1 |
| 61 | RELEASE = 2 |
| 62 | ENTER = 3 |
| 63 | LEAVE = 4 |
| 64 | MOUSE = 5 |
| 65 | FOCUS = 6 |
| 66 | UNFOCUS = 7 |
| 67 | KEYBOARD = 8 |
| 68 | STEP = 9 |
| 69 | MOVE = 10 |
| 70 | FONT_NAME = 'Helvetica' |
| 71 | FONT_BOLDNAME = 'Helvetica-Bold' |
| 72 | FONT_ITALICNAME = 'Helvetica-Oblique' |
| 73 | FONT_FIXEDNAME = 'Courier' |
| 74 | FONT_ICONNAME = 'Icon' |
| 75 | SMALL_FONT = 8.0 |
| 76 | NORMAL_FONT = 11.0 |
| 77 | LARGE_FONT = 20.0 |
| 78 | NORMAL_STYLE = 0 |
| 79 | BOLD_STYLE = 1 |
| 80 | ITALIC_STYLE = 2 |
| 81 | FIXED_STYLE = 3 |
| 82 | ENGRAVED_STYLE = 4 |
| 83 | ICON_STYLE = 5 |
| 84 | BITMAP = 3 |
| 85 | NORMAL_BITMAP = 0 |
| 86 | BITMAP_BOXTYPE = NO_BOX |
| 87 | BITMAP_COL1 = 0 |
| 88 | BITMAP_COL2 = COL1 |
| 89 | BITMAP_LCOL = LCOL |
| 90 | BITMAP_ALIGN = ALIGN_BOTTOM |
| 91 | BITMAP_MAXSIZE = 128*128 |
| 92 | BITMAP_BW = BOUND_WIDTH |
| 93 | BOX = 1 |
| 94 | BOX_BOXTYPE = UP_BOX |
| 95 | BOX_COL1 = COL1 |
| 96 | BOX_LCOL = LCOL |
| 97 | BOX_ALIGN = ALIGN_CENTER |
| 98 | BOX_BW = BOUND_WIDTH |
| 99 | BROWSER = 71 |
| 100 | NORMAL_BROWSER = 0 |
| 101 | SELECT_BROWSER = 1 |
| 102 | HOLD_BROWSER = 2 |
| 103 | MULTI_BROWSER = 3 |
| 104 | BROWSER_BOXTYPE = DOWN_BOX |
| 105 | BROWSER_COL1 = COL1 |
| 106 | BROWSER_COL2 = 3 |
| 107 | BROWSER_LCOL = LCOL |
| 108 | BROWSER_ALIGN = ALIGN_BOTTOM |
| 109 | BROWSER_SLCOL = COL1 |
| 110 | BROWSER_BW = BOUND_WIDTH |
| 111 | BROWSER_LINELENGTH = 128 |
| 112 | BROWSER_MAXLINE = 512 |
| 113 | BUTTON = 11 |
| 114 | NORMAL_BUTTON = 0 |
| 115 | PUSH_BUTTON = 1 |
| 116 | RADIO_BUTTON = 2 |
| 117 | HIDDEN_BUTTON = 3 |
| 118 | TOUCH_BUTTON = 4 |
| 119 | INOUT_BUTTON = 5 |
| 120 | RETURN_BUTTON = 6 |
| 121 | if _v20: |
| 122 | HIDDEN_RET_BUTTON = 7 |
| 123 | BUTTON_BOXTYPE = UP_BOX |
| 124 | BUTTON_COL1 = COL1 |
| 125 | BUTTON_COL2 = COL1 |
| 126 | BUTTON_LCOL = LCOL |
| 127 | BUTTON_ALIGN = ALIGN_CENTER |
| 128 | BUTTON_MCOL1 = MCOL |
| 129 | BUTTON_MCOL2 = MCOL |
| 130 | BUTTON_BW = BOUND_WIDTH |
| 131 | if _v20: |
| 132 | CHART = 4 |
| 133 | BAR_CHART = 0 |
| 134 | HORBAR_CHART = 1 |
| 135 | LINE_CHART = 2 |
| 136 | FILLED_CHART = 3 |
| 137 | SPIKE_CHART = 4 |
| 138 | PIE_CHART = 5 |
| 139 | SPECIALPIE_CHART = 6 |
| 140 | CHART_BOXTYPE = BORDER_BOX |
| 141 | CHART_COL1 = COL1 |
| 142 | CHART_LCOL = LCOL |
| 143 | CHART_ALIGN = ALIGN_BOTTOM |
| 144 | CHART_BW = BOUND_WIDTH |
| 145 | CHART_MAX = 128 |
| 146 | CHOICE = 42 |
| 147 | NORMAL_CHOICE = 0 |
| 148 | CHOICE_BOXTYPE = DOWN_BOX |
| 149 | CHOICE_COL1 = COL1 |
| 150 | CHOICE_COL2 = LCOL |
| 151 | CHOICE_LCOL = LCOL |
| 152 | CHOICE_ALIGN = ALIGN_LEFT |
| 153 | CHOICE_BW = BOUND_WIDTH |
| 154 | CHOICE_MCOL = MCOL |
| 155 | CHOICE_MAXITEMS = 128 |
| 156 | CHOICE_MAXSTR = 64 |
| 157 | CLOCK = 61 |
| 158 | SQUARE_CLOCK = 0 |
| 159 | ROUND_CLOCK = 1 |
| 160 | CLOCK_BOXTYPE = UP_BOX |
| 161 | CLOCK_COL1 = 37 |
| 162 | CLOCK_COL2 = 42 |
| 163 | CLOCK_LCOL = LCOL |
| 164 | CLOCK_ALIGN = ALIGN_BOTTOM |
| 165 | CLOCK_TOPCOL = COL1 |
| 166 | CLOCK_BW = BOUND_WIDTH |
| 167 | COUNTER = 25 |
| 168 | NORMAL_COUNTER = 0 |
| 169 | SIMPLE_COUNTER = 1 |
| 170 | COUNTER_BOXTYPE = UP_BOX |
| 171 | COUNTER_COL1 = COL1 |
| 172 | COUNTER_COL2 = 4 |
| 173 | COUNTER_LCOL = LCOL |
| 174 | COUNTER_ALIGN = ALIGN_BOTTOM |
| 175 | if _v20: |
| 176 | COUNTER_BW = BOUND_WIDTH |
| 177 | else: |
| 178 | DEFAULT = 51 |
| 179 | RETURN_DEFAULT = 0 |
| 180 | ALWAYS_DEFAULT = 1 |
| 181 | DIAL = 22 |
| 182 | NORMAL_DIAL = 0 |
| 183 | LINE_DIAL = 1 |
| 184 | DIAL_BOXTYPE = NO_BOX |
| 185 | DIAL_COL1 = COL1 |
| 186 | DIAL_COL2 = 37 |
| 187 | DIAL_LCOL = LCOL |
| 188 | DIAL_ALIGN = ALIGN_BOTTOM |
| 189 | DIAL_TOPCOL = COL1 |
| 190 | DIAL_BW = BOUND_WIDTH |
| 191 | FREE = 101 |
| 192 | NORMAL_FREE = 1 |
| 193 | SLEEPING_FREE = 2 |
| 194 | INPUT_FREE = 3 |
| 195 | CONTINUOUS_FREE = 4 |
| 196 | ALL_FREE = 5 |
| 197 | INPUT = 31 |
| 198 | NORMAL_INPUT = 0 |
| 199 | if _v20: |
| 200 | FLOAT_INPUT = 1 |
| 201 | INT_INPUT = 2 |
| 202 | HIDDEN_INPUT = 3 |
| 203 | if _v21: |
| 204 | MULTILINE_INPUT = 4 |
| 205 | SECRET_INPUT = 5 |
| 206 | else: |
| 207 | ALWAYS_INPUT = 1 |
| 208 | INPUT_BOXTYPE = DOWN_BOX |
| 209 | INPUT_COL1 = 13 |
| 210 | INPUT_COL2 = 5 |
| 211 | INPUT_LCOL = LCOL |
| 212 | INPUT_ALIGN = ALIGN_LEFT |
| 213 | INPUT_TCOL = LCOL |
| 214 | INPUT_CCOL = 4 |
| 215 | INPUT_BW = BOUND_WIDTH |
| 216 | INPUT_MAX = 128 |
| 217 | LIGHTBUTTON = 12 |
| 218 | LIGHTBUTTON_BOXTYPE = UP_BOX |
| 219 | LIGHTBUTTON_COL1 = 39 |
| 220 | LIGHTBUTTON_COL2 = 3 |
| 221 | LIGHTBUTTON_LCOL = LCOL |
| 222 | LIGHTBUTTON_ALIGN = ALIGN_CENTER |
| 223 | LIGHTBUTTON_TOPCOL = COL1 |
| 224 | LIGHTBUTTON_MCOL = MCOL |
| 225 | LIGHTBUTTON_BW1 = BOUND_WIDTH |
| 226 | LIGHTBUTTON_BW2 = BOUND_WIDTH/2.0 |
| 227 | LIGHTBUTTON_MINSIZE = 12.0 |
| 228 | MENU = 41 |
| 229 | TOUCH_MENU = 0 |
| 230 | PUSH_MENU = 1 |
| 231 | MENU_BOXTYPE = BORDER_BOX |
| 232 | MENU_COL1 = 55 |
| 233 | MENU_COL2 = 37 |
| 234 | MENU_LCOL = LCOL |
| 235 | MENU_ALIGN = ALIGN_CENTER |
| 236 | MENU_BW = BOUND_WIDTH |
| 237 | MENU_MAX = 300 |
| 238 | POSITIONER = 23 |
| 239 | NORMAL_POSITIONER = 0 |
| 240 | POSITIONER_BOXTYPE = DOWN_BOX |
| 241 | POSITIONER_COL1 = COL1 |
| 242 | POSITIONER_COL2 = 1 |
| 243 | POSITIONER_LCOL = LCOL |
| 244 | POSITIONER_ALIGN = ALIGN_BOTTOM |
| 245 | POSITIONER_BW = BOUND_WIDTH |
| 246 | ROUNDBUTTON = 13 |
| 247 | ROUNDBUTTON_BOXTYPE = NO_BOX |
| 248 | ROUNDBUTTON_COL1 = 7 |
| 249 | ROUNDBUTTON_COL2 = 3 |
| 250 | ROUNDBUTTON_LCOL = LCOL |
| 251 | ROUNDBUTTON_ALIGN = ALIGN_CENTER |
| 252 | ROUNDBUTTON_TOPCOL = COL1 |
| 253 | ROUNDBUTTON_MCOL = MCOL |
| 254 | ROUNDBUTTON_BW = BOUND_WIDTH |
| 255 | SLIDER = 21 |
| 256 | VALSLIDER = 24 |
| 257 | VERT_SLIDER = 0 |
| 258 | HOR_SLIDER = 1 |
| 259 | VERT_FILL_SLIDER = 2 |
| 260 | HOR_FILL_SLIDER = 3 |
| 261 | VERT_NICE_SLIDER = 4 |
| 262 | HOR_NICE_SLIDER = 5 |
| 263 | SLIDER_BOXTYPE = DOWN_BOX |
| 264 | SLIDER_COL1 = COL1 |
| 265 | SLIDER_COL2 = COL1 |
| 266 | SLIDER_LCOL = LCOL |
| 267 | SLIDER_ALIGN = ALIGN_BOTTOM |
| 268 | SLIDER_BW1 = BOUND_WIDTH |
| 269 | SLIDER_BW2 = BOUND_WIDTH*0.75 |
| 270 | SLIDER_FINE = 0.05 |
| 271 | SLIDER_WIDTH = 0.08 |
| 272 | TEXT = 2 |
| 273 | NORMAL_TEXT = 0 |
| 274 | TEXT_BOXTYPE = NO_BOX |
| 275 | TEXT_COL1 = COL1 |
| 276 | TEXT_LCOL = LCOL |
| 277 | TEXT_ALIGN = ALIGN_LEFT |
| 278 | TEXT_BW = BOUND_WIDTH |
| 279 | TIMER = 62 |
| 280 | NORMAL_TIMER = 0 |
| 281 | VALUE_TIMER = 1 |
| 282 | HIDDEN_TIMER = 2 |
| 283 | TIMER_BOXTYPE = DOWN_BOX |
| 284 | TIMER_COL1 = COL1 |
| 285 | TIMER_COL2 = 1 |
| 286 | TIMER_LCOL = LCOL |
| 287 | TIMER_ALIGN = ALIGN_CENTER |
| 288 | TIMER_BW = BOUND_WIDTH |
| 289 | TIMER_BLINKRATE = 0.2 |