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