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