1c435f0bf949b8d07152f47a80cd130c1453e8d5
[wxWidgets.git] / wxPython / wxPython / lib / ErrorDialogs_wdr.py
1 #!/usr/env python
2 #-----------------------------------------------------------------------------
3 # Python source generated by wxDesigner from file: ErrorDialogs.wdr
4 # Do not modify this file, all changes will be lost!
5 #-----------------------------------------------------------------------------
6
7 # Include wxWindows' modules
8 from wxPython.wx import *
9
10 # Custom source
11 from wxPython.lib.PythonBitmaps import *
12
13 # Window functions
14
15 wxPyError_ID_TEXT1 = 10000
16 wxPyError_ID_PROGRAMNAME = 10001
17 wxPyError_ID_TEXT2 = 10002
18 wxPyError_ID_VERSIONNUMBER = 10003
19 wxPyError_ID_STATICBITMAP1 = 10004
20 wxPyError_ID_STATICBITMAP2 = 10005
21 wxPyError_ID_TEXT3 = 10006
22 wxPyError_ID_TEXT4 = 10007
23 wxPyError_ID_TEXTCTRL = 10008
24 wxPyError_ID_TEXT5 = 10009
25 wxPyError_ID_CONTINUE = 10010
26 wxPyError_ID_MAIL = 10011
27 wxPyError_ID_TEXT6 = 10012
28 wxPyError_ID_ADDRESS = 10013
29 wxPyError_ID_EXIT = 10014
30 wxPyError_ID_TEXT7 = 10015
31 wxPyError_ID_TEXT8 = 10016
32 wxPyError_ID_TEXT9 = 10017
33 wxPyError_ID_TEXT10 = 10018
34 wxPyError_ID_TEXT11 = 10019
35 wxPyError_ID_TEXT12 = 10020
36
37 def populate_wxNonFatalErrorDialogWithTraceback( parent, call_fit = true, set_sizer = true ):
38 item0 = wxBoxSizer( wxVERTICAL )
39
40 item1 = wxBoxSizer( wxHORIZONTAL )
41
42 item3 = wxStaticBox( parent, -1, "Non-fatal" )
43 item3.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
44 item2 = wxStaticBoxSizer( item3, wxVERTICAL )
45
46 item4 = wxBoxSizer( wxHORIZONTAL )
47
48 item5 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
49 item5.SetForegroundColour( wxWHITE )
50 item5.SetBackgroundColour( wxRED )
51 item5.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
52 item4.AddWindow( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
53
54 item6 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "name", wxDefaultPosition, wxDefaultSize, 0 )
55 item6.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
56 item4.AddWindow( item6, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
57
58 item2.AddSizer( item4, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
59
60 item7 = wxBoxSizer( wxHORIZONTAL )
61
62 item8 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, 0 )
63 item8.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
64 item7.AddWindow( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
65
66 item9 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "?.?", wxDefaultPosition, wxDefaultSize, 0 )
67 item9.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
68 item7.AddWindow( item9, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
69
70 item2.AddSizer( item7, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
71
72 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
73
74 item10 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
75 item1.AddWindow( item10, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
76
77 item11 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
78 item1.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
79
80 item0.AddSizer( item1, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
81
82 item12 = wxStaticText( parent, wxPyError_ID_TEXT3, "The Python interpreter has encountered a so-called \"un-caught exception\".", wxDefaultPosition, wxDefaultSize, 0 )
83 item0.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
84
85 item14 = wxStaticBox( parent, -1, "Traceback" )
86 item14.SetFont( wxFont( 6, wxSWISS, wxITALIC, wxNORMAL ) )
87 parent.sizerAroundText = item13 = wxStaticBoxSizer( item14, wxVERTICAL )
88
89 item15 = wxStaticText( parent, wxPyError_ID_TEXT4,
90 "Please don't worry if this doesn't mean anything to you.\n"
91 "It will be included in the \"bug report\" mentioned below.",
92 wxDefaultPosition, wxDefaultSize, 0 )
93 item15.SetFont( wxFont( 8, wxROMAN, wxNORMAL, wxNORMAL ) )
94 item13.AddWindow( item15, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
95
96 item16 = wxTextCtrl( parent, wxPyError_ID_TEXTCTRL, "Traceback is to go here", wxDefaultPosition, wxDefaultSize, wxTE_READONLY|wxTE_MULTILINE )
97 item16.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxNORMAL ) )
98 item16.SetToolTip( wxToolTip("A \"traceback\" reports the nature and location of a Python error.") )
99 item13.AddWindow( item16, 0, wxALIGN_CENTRE|wxALL, 5 )
100
101 item0.AddSizer( item13, 1, wxALIGN_CENTRE|wxALL, 5 )
102
103 item17 = wxStaticText( parent, wxPyError_ID_TEXT5, "Please select one of the options below.", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
104 item17.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
105 item0.AddWindow( item17, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
106
107 item18 = wxFlexGridSizer( 3, 0, 0, 6 )
108 item18.AddGrowableCol( 0 )
109 item18.AddGrowableCol( 1 )
110 item18.AddGrowableCol( 2 )
111
112 item19 = wxButton( parent, wxPyError_ID_CONTINUE, "Continue", wxDefaultPosition, wxDefaultSize, 0 )
113 item19.SetDefault()
114 item18.AddWindow( item19, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
115
116 item20 = wxBoxSizer( wxHORIZONTAL )
117
118 item21 = wxButton( parent, wxPyError_ID_MAIL, "E-mail support", wxDefaultPosition, wxDefaultSize, 0 )
119 item20.AddWindow( item21, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
120
121 item22 = wxBoxSizer( wxVERTICAL )
122
123 item23 = wxStaticText( parent, wxPyError_ID_TEXT6, "Your e-mail address:", wxDefaultPosition, wxDefaultSize, 0 )
124 item23.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
125 item22.AddWindow( item23, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
126
127 item24 = wxTextCtrl( parent, wxPyError_ID_ADDRESS, "", wxDefaultPosition, wxSize(80,-1), 0 )
128 item22.AddWindow( item24, 2, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
129
130 item20.AddSizer( item22, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
131
132 item18.AddSizer( item20, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
133
134 item25 = wxButton( parent, wxPyError_ID_EXIT, "Exit immediately", wxDefaultPosition, wxDefaultSize, 0 )
135 item18.AddWindow( item25, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
136
137 item26 = wxStaticText( parent, wxPyError_ID_TEXT7, "Attempt to continue.", wxDefaultPosition, wxDefaultSize, 0 )
138 item18.AddWindow( item26, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
139
140 item27 = wxStaticText( parent, wxPyError_ID_TEXT8, "E-mail a \"bug report\" (if this is indeed a bug!).", wxDefaultPosition, wxDefaultSize, 0 )
141 item18.AddWindow( item27, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
142
143 item28 = wxStaticText( parent, wxPyError_ID_TEXT9, "Attempt to exit immediately.", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
144 item18.AddWindow( item28, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE, 5 )
145
146 item29 = wxStaticText( parent, wxPyError_ID_TEXT10, "", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
147 item29.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
148 item18.AddWindow( item29, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
149
150 item30 = wxStaticText( parent, wxPyError_ID_TEXT11, "(Please read any accompanying documentation first!)", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
151 item30.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
152 item18.AddWindow( item30, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
153
154 item31 = wxStaticText( parent, wxPyError_ID_TEXT12, "(Please note that no attempt to save unsaved data will be made.)", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
155 item31.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
156 item18.AddWindow( item31, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
157
158 item0.AddSizer( item18, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
159
160 if set_sizer == true:
161 parent.SetAutoLayout( true )
162 parent.SetSizer( item0 )
163 if call_fit == true:
164 item0.Fit( parent )
165 item0.SetSizeHints( parent )
166
167 return item0
168
169 wxPyError_ID_EXCEPTIONNAME = 10022
170 wxPyError_ID_EXTRAINFORMATION = 10023
171 wxPyError_ID_TEXT13 = 10024
172 wxPyError_ID_TEXT14 = 10025
173
174 def populate_wxNonFatalErrorDialog( parent, call_fit = true, set_sizer = true ):
175 item0 = wxBoxSizer( wxVERTICAL )
176
177 item1 = wxBoxSizer( wxHORIZONTAL )
178
179 item2 = wxBoxSizer( wxHORIZONTAL )
180
181 item4 = wxStaticBox( parent, -1, "Non-fatal" )
182 item4.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
183 item3 = wxStaticBoxSizer( item4, wxVERTICAL )
184
185 item5 = wxBoxSizer( wxHORIZONTAL )
186
187 item6 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
188 item6.SetForegroundColour( wxWHITE )
189 item6.SetBackgroundColour( wxRED )
190 item6.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
191 item5.AddWindow( item6, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
192
193 item7 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "name", wxDefaultPosition, wxDefaultSize, 0 )
194 item7.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
195 item5.AddWindow( item7, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
196
197 item3.AddSizer( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
198
199 item8 = wxBoxSizer( wxHORIZONTAL )
200
201 item9 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
202 item9.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
203 item8.AddWindow( item9, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
204
205 item10 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "?.?", wxDefaultPosition, wxDefaultSize, 0 )
206 item10.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
207 item8.AddWindow( item10, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
208
209 item3.AddSizer( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
210
211 item2.AddSizer( item3, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
212
213 item11 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
214 item2.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
215
216 item12 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
217 item2.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
218
219 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
220
221 item0.AddSizer( item1, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
222
223 item13 = wxStaticText( parent, wxPyError_ID_TEXT3, "The Python interpreter has encountered a so-called \"un-caught exception\".", wxDefaultPosition, wxDefaultSize, 0 )
224 item0.AddWindow( item13, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
225
226 item15 = wxStaticBox( parent, -1, "Exception information" )
227 item15.SetFont( wxFont( 6, wxSWISS, wxITALIC, wxNORMAL ) )
228 item14 = wxStaticBoxSizer( item15, wxVERTICAL )
229
230 item16 = wxStaticText( parent, wxPyError_ID_TEXT4,
231 "Please don't worry if this doesn't mean anything to you.\n"
232 "It will be included in the \"bug report\" mentioned below, along with a \"stack traceback\".",
233 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
234 item16.SetFont( wxFont( 8, wxROMAN, wxNORMAL, wxNORMAL ) )
235 item14.AddWindow( item16, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
236
237 item17 = wxFlexGridSizer( 2, 0, 1, 1 )
238 item17.AddGrowableCol( 1 )
239
240 item18 = wxStaticText( parent, wxPyError_ID_TEXT5, "Name:", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
241 item18.SetFont( wxFont( 10, wxROMAN, wxITALIC, wxNORMAL ) )
242 item18.SetToolTip( wxToolTip("This gives the type of the error.") )
243 item17.AddWindow( item18, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
244
245 item19 = wxStaticText( parent, wxPyError_ID_EXCEPTIONNAME, "text", wxDefaultPosition, wxDefaultSize, 0 )
246 item17.AddWindow( item19, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
247
248 item20 = wxStaticText( parent, wxPyError_ID_TEXT6,
249 "Extra\n"
250 "information:",
251 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
252 item20.SetFont( wxFont( 10, wxROMAN, wxITALIC, wxNORMAL ) )
253 item17.AddWindow( item20, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
254
255 item21 = wxStaticText( parent, wxPyError_ID_EXTRAINFORMATION, "text", wxDefaultPosition, wxDefaultSize, 0 )
256 item17.AddWindow( item21, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
257
258 item14.AddSizer( item17, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
259
260 item0.AddSizer( item14, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 10 )
261
262 item22 = wxStaticText( parent, wxPyError_ID_TEXT7, "Please select one of the options below.", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
263 item22.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
264 item0.AddWindow( item22, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
265
266 item23 = wxFlexGridSizer( 3, 0, 0, 6 )
267 item23.AddGrowableCol( 0 )
268 item23.AddGrowableCol( 1 )
269 item23.AddGrowableCol( 2 )
270
271 item24 = wxButton( parent, wxPyError_ID_CONTINUE, "Continue", wxDefaultPosition, wxDefaultSize, 0 )
272 item24.SetDefault()
273 item23.AddWindow( item24, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
274
275 item25 = wxBoxSizer( wxHORIZONTAL )
276
277 item26 = wxButton( parent, wxPyError_ID_MAIL, "E-mail support", wxDefaultPosition, wxDefaultSize, 0 )
278 item25.AddWindow( item26, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
279
280 item27 = wxBoxSizer( wxVERTICAL )
281
282 item28 = wxStaticText( parent, wxPyError_ID_TEXT8, "Your e-mail address:", wxDefaultPosition, wxDefaultSize, 0 )
283 item28.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
284 item27.AddWindow( item28, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
285
286 item29 = wxTextCtrl( parent, wxPyError_ID_ADDRESS, "", wxDefaultPosition, wxSize(80,-1), 0 )
287 item27.AddWindow( item29, 2, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
288
289 item25.AddSizer( item27, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
290
291 item23.AddSizer( item25, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
292
293 item30 = wxButton( parent, wxPyError_ID_EXIT, "Exit immediately", wxDefaultPosition, wxDefaultSize, 0 )
294 item23.AddWindow( item30, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
295
296 item31 = wxStaticText( parent, wxPyError_ID_TEXT9, "Attempt to continue.", wxDefaultPosition, wxDefaultSize, 0 )
297 item23.AddWindow( item31, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
298
299 item32 = wxStaticText( parent, wxPyError_ID_TEXT10, "E-mail a \"bug report\" (if this is indeed a bug!).", wxDefaultPosition, wxDefaultSize, 0 )
300 item23.AddWindow( item32, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
301
302 item33 = wxStaticText( parent, wxPyError_ID_TEXT11, "Attempt to exit immediately.", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
303 item23.AddWindow( item33, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE, 5 )
304
305 item34 = wxStaticText( parent, wxPyError_ID_TEXT12, "", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
306 item34.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
307 item23.AddWindow( item34, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
308
309 item35 = wxStaticText( parent, wxPyError_ID_TEXT13, "(Please read any accompanying documentation first!)", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
310 item35.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
311 item23.AddWindow( item35, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
312
313 item36 = wxStaticText( parent, wxPyError_ID_TEXT14, "(Please note that no attempt to save unsaved data will be made.)", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
314 item36.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
315 item23.AddWindow( item36, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
316
317 item0.AddSizer( item23, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
318
319 if set_sizer == true:
320 parent.SetAutoLayout( true )
321 parent.SetSizer( item0 )
322 if call_fit == true:
323 item0.Fit( parent )
324 item0.SetSizeHints( parent )
325
326 return item0
327
328
329 def populate_wxFatalErrorDialogWithTraceback( parent, call_fit = true, set_sizer = true ):
330 item0 = wxBoxSizer( wxVERTICAL )
331
332 item1 = wxBoxSizer( wxHORIZONTAL )
333
334 item3 = wxStaticBox( parent, -1, "Fatal" )
335 item3.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
336 item2 = wxStaticBoxSizer( item3, wxVERTICAL )
337
338 item4 = wxBoxSizer( wxHORIZONTAL )
339
340 item5 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
341 item5.SetForegroundColour( wxWHITE )
342 item5.SetBackgroundColour( wxRED )
343 item5.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
344 item4.AddWindow( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
345
346 item6 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "Program-name", wxDefaultPosition, wxDefaultSize, 0 )
347 item6.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
348 item4.AddWindow( item6, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
349
350 item2.AddSizer( item4, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
351
352 item7 = wxBoxSizer( wxHORIZONTAL )
353
354 item8 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
355 item8.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
356 item7.AddWindow( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
357
358 item9 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "?.?", wxDefaultPosition, wxDefaultSize, 0 )
359 item9.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
360 item7.AddWindow( item9, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
361
362 item2.AddSizer( item7, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
363
364 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
365
366 item10 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
367 item1.AddWindow( item10, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
368
369 item11 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
370 item1.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
371
372 item0.AddSizer( item1, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
373
374 item12 = wxStaticText( parent, wxPyError_ID_TEXT3, "The Python interpreter has encountered a so-called \"un-caught exception\".", wxDefaultPosition, wxDefaultSize, 0 )
375 item0.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
376
377 item14 = wxStaticBox( parent, -1, "Traceback" )
378 item14.SetFont( wxFont( 6, wxSWISS, wxITALIC, wxNORMAL ) )
379 parent.sizerAroundText = item13 = wxStaticBoxSizer( item14, wxVERTICAL )
380
381 item15 = wxStaticText( parent, wxPyError_ID_TEXT4,
382 "Please don't worry if this doesn't mean anything to you.\n"
383 "It will be included in the \"bug report\" mentioned below.",
384 wxDefaultPosition, wxDefaultSize, 0 )
385 item15.SetFont( wxFont( 8, wxROMAN, wxNORMAL, wxNORMAL ) )
386 item13.AddWindow( item15, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
387
388 item16 = wxTextCtrl( parent, wxPyError_ID_TEXTCTRL, "Traceback is to go here", wxDefaultPosition, wxDefaultSize, wxTE_READONLY|wxTE_MULTILINE )
389 item16.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxNORMAL ) )
390 item16.SetToolTip( wxToolTip("A \"traceback\" reports the nature and location of a Python error.") )
391 item13.AddWindow( item16, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 )
392
393 item0.AddSizer( item13, 0, wxALIGN_CENTRE|wxALL, 5 )
394
395 item17 = wxStaticText( parent, wxPyError_ID_TEXT5, "Please select one of the options below.", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
396 item17.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
397 item0.AddWindow( item17, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
398
399 item18 = wxFlexGridSizer( 3, 0, 0, 6 )
400 item18.AddGrowableCol( 0 )
401 item18.AddGrowableCol( 1 )
402 item18.AddGrowableCol( 2 )
403
404 item19 = wxBoxSizer( wxHORIZONTAL )
405
406 item20 = wxButton( parent, wxPyError_ID_MAIL, "E-mail support", wxDefaultPosition, wxDefaultSize, 0 )
407 item19.AddWindow( item20, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
408
409 item21 = wxBoxSizer( wxVERTICAL )
410
411 item22 = wxStaticText( parent, wxPyError_ID_TEXT6, "Your e-mail address:", wxDefaultPosition, wxDefaultSize, 0 )
412 item22.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
413 item21.AddWindow( item22, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
414
415 item23 = wxTextCtrl( parent, wxPyError_ID_ADDRESS, "", wxDefaultPosition, wxSize(80,-1), 0 )
416 item21.AddWindow( item23, 2, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
417
418 item19.AddSizer( item21, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
419
420 item18.AddSizer( item19, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
421
422 item24 = wxButton( parent, wxPyError_ID_EXIT, "Exit immediately", wxDefaultPosition, wxDefaultSize, 0 )
423 item24.SetDefault()
424 item18.AddWindow( item24, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
425
426 item25 = wxStaticText( parent, wxPyError_ID_TEXT7, "E-mail a \"bug report\" (if this is indeed a bug!).", wxDefaultPosition, wxDefaultSize, 0 )
427 item18.AddWindow( item25, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
428
429 item26 = wxStaticText( parent, wxPyError_ID_TEXT8, "Attempt to exit immediately.", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
430 item18.AddWindow( item26, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE, 5 )
431
432 item27 = wxStaticText( parent, wxPyError_ID_TEXT9, "(Please read any accompanying documentation first!)", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
433 item27.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
434 item18.AddWindow( item27, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
435
436 item28 = wxStaticText( parent, wxPyError_ID_TEXT10, "(Please note that no attempt to save unsaved data will be made.)", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
437 item28.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
438 item18.AddWindow( item28, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
439
440 item0.AddSizer( item18, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
441
442 if set_sizer == true:
443 parent.SetAutoLayout( true )
444 parent.SetSizer( item0 )
445 if call_fit == true:
446 item0.Fit( parent )
447 item0.SetSizeHints( parent )
448
449 return item0
450
451
452 def populate_wxFatalErrorDialog( parent, call_fit = true, set_sizer = true ):
453 item0 = wxBoxSizer( wxVERTICAL )
454
455 item1 = wxBoxSizer( wxHORIZONTAL )
456
457 item3 = wxStaticBox( parent, -1, "Fatal" )
458 item3.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
459 item2 = wxStaticBoxSizer( item3, wxVERTICAL )
460
461 item4 = wxBoxSizer( wxHORIZONTAL )
462
463 item5 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
464 item5.SetForegroundColour( wxWHITE )
465 item5.SetBackgroundColour( wxRED )
466 item5.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
467 item4.AddWindow( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
468
469 item6 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "Program-name", wxDefaultPosition, wxDefaultSize, 0 )
470 item6.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
471 item4.AddWindow( item6, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
472
473 item2.AddSizer( item4, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
474
475 item7 = wxBoxSizer( wxHORIZONTAL )
476
477 item8 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
478 item8.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
479 item7.AddWindow( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
480
481 item9 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "?.?", wxDefaultPosition, wxDefaultSize, 0 )
482 item9.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
483 item7.AddWindow( item9, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
484
485 item2.AddSizer( item7, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
486
487 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
488
489 item10 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
490 item1.AddWindow( item10, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
491
492 item11 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
493 item1.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
494
495 item0.AddSizer( item1, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
496
497 item12 = wxStaticText( parent, wxPyError_ID_TEXT3, "The Python interpreter has encountered a so-called \"un-caught exception\".", wxDefaultPosition, wxDefaultSize, 0 )
498 item0.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
499
500 item14 = wxStaticBox( parent, -1, "Exception information" )
501 item14.SetFont( wxFont( 6, wxSWISS, wxITALIC, wxNORMAL ) )
502 item13 = wxStaticBoxSizer( item14, wxVERTICAL )
503
504 item15 = wxStaticText( parent, wxPyError_ID_TEXT4,
505 "Please don't worry if this doesn't mean anything to you.\n"
506 "It will be included in the \"bug report\" mentioned below, along with a \"stack traceback\".",
507 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
508 item15.SetFont( wxFont( 8, wxROMAN, wxNORMAL, wxNORMAL ) )
509 item13.AddWindow( item15, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
510
511 item16 = wxFlexGridSizer( 2, 0, 1, 1 )
512 item16.AddGrowableCol( 1 )
513
514 item17 = wxStaticText( parent, wxPyError_ID_TEXT5, "Name:", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
515 item17.SetFont( wxFont( 10, wxROMAN, wxITALIC, wxNORMAL ) )
516 item17.SetToolTip( wxToolTip("This gives the type of the error.") )
517 item16.AddWindow( item17, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
518
519 item18 = wxStaticText( parent, wxPyError_ID_EXCEPTIONNAME, "text", wxDefaultPosition, wxDefaultSize, 0 )
520 item16.AddWindow( item18, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
521
522 item19 = wxStaticText( parent, wxPyError_ID_TEXT6,
523 "Extra\n"
524 "information:",
525 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
526 item19.SetFont( wxFont( 10, wxROMAN, wxITALIC, wxNORMAL ) )
527 item16.AddWindow( item19, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
528
529 item20 = wxStaticText( parent, wxPyError_ID_EXTRAINFORMATION, "text", wxDefaultPosition, wxDefaultSize, 0 )
530 item16.AddWindow( item20, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
531
532 item13.AddSizer( item16, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
533
534 item0.AddSizer( item13, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 10 )
535
536 item21 = wxStaticText( parent, wxPyError_ID_TEXT7, "Please select one of the options below.", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
537 item21.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
538 item0.AddWindow( item21, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
539
540 item22 = wxFlexGridSizer( 3, 0, 0, 6 )
541 item22.AddGrowableCol( 0 )
542 item22.AddGrowableCol( 1 )
543 item22.AddGrowableCol( 2 )
544
545 item23 = wxBoxSizer( wxHORIZONTAL )
546
547 item24 = wxButton( parent, wxPyError_ID_MAIL, "E-mail support", wxDefaultPosition, wxDefaultSize, 0 )
548 item23.AddWindow( item24, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
549
550 item25 = wxBoxSizer( wxVERTICAL )
551
552 item26 = wxStaticText( parent, wxPyError_ID_TEXT8, "Your e-mail address:", wxDefaultPosition, wxDefaultSize, 0 )
553 item26.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
554 item25.AddWindow( item26, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
555
556 item27 = wxTextCtrl( parent, wxPyError_ID_ADDRESS, "", wxDefaultPosition, wxSize(80,-1), 0 )
557 item25.AddWindow( item27, 2, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
558
559 item23.AddSizer( item25, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
560
561 item22.AddSizer( item23, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
562
563 item28 = wxButton( parent, wxPyError_ID_EXIT, "Exit immediately", wxDefaultPosition, wxDefaultSize, 0 )
564 item28.SetDefault()
565 item22.AddWindow( item28, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
566
567 item29 = wxStaticText( parent, wxPyError_ID_TEXT9, "E-mail a \"bug report\" (if this is indeed a bug!).", wxDefaultPosition, wxDefaultSize, 0 )
568 item22.AddWindow( item29, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
569
570 item30 = wxStaticText( parent, wxPyError_ID_TEXT10, "Attempt to exit immediately.", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
571 item22.AddWindow( item30, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE, 5 )
572
573 item31 = wxStaticText( parent, wxPyError_ID_TEXT11, "(Please read any accompanying documentation first!)", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
574 item31.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
575 item22.AddWindow( item31, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
576
577 item32 = wxStaticText( parent, wxPyError_ID_TEXT12, "(Please note that no attempt to save unsaved data will be made.)", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
578 item32.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
579 item22.AddWindow( item32, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
580
581 item0.AddSizer( item22, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
582
583 if set_sizer == true:
584 parent.SetAutoLayout( true )
585 parent.SetSizer( item0 )
586 if call_fit == true:
587 item0.Fit( parent )
588 item0.SetSizeHints( parent )
589
590 return item0
591
592 # End of generated file