]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/lib/ErrorDialogs_wdr.py
Give BitmapButton its own demo, get rid of ErrorDialogs
[wxWidgets.git] / wxPython / wx / 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 from wxPython.html import *
12 from wxPython.lib.ClickableHtmlWindow import *
13
14 # Window functions
15
16 wxPyError_ID_TEXT1 = 10000
17 wxPyError_ID_PROGRAMNAME = 10001
18 wxPyError_ID_TEXT2 = 10002
19 wxPyError_ID_VERSIONNUMBER = 10003
20 wxPyError_ID_EXTRA_VERSION_INFORMATION = 10004
21 wxPyError_ID_STATICBITMAP1 = 10005
22 wxPyError_ID_STATICBITMAP2 = 10006
23 wxPyError_ID_TEXT3 = 10007
24 wxPyError_ID_TEXT4 = 10008
25 wxPyError_ID_TEXTCTRL = 10009
26 wxPyError_ID_TEXT5 = 10010
27 wxPyError_ID_CONTINUE = 10011
28 wxPyError_ID_MAIL = 10012
29 wxPyError_ID_TEXT6 = 10013
30 wxPyError_ID_ADDRESS = 10014
31 wxPyError_ID_EXIT = 10015
32 wxPyError_ID_TEXT7 = 10016
33 wxPyError_ID_TEXT8 = 10017
34 wxPyError_ID_TEXT9 = 10018
35 wxPyError_ID_TEXT10 = 10019
36 wxPyError_ID_TEXT11 = 10020
37 wxPyError_ID_TEXT12 = 10021
38
39 def populate_wxPyNonFatalErrorDialogWithTraceback( parent, call_fit = True, set_sizer = True ):
40 item0 = wxBoxSizer( wxVERTICAL )
41
42 item1 = wxBoxSizer( wxHORIZONTAL )
43
44 item3 = wxStaticBox( parent, -1, "Non-fatal" )
45 item3.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
46 item2 = wxStaticBoxSizer( item3, wxVERTICAL )
47
48 item4 = wxBoxSizer( wxHORIZONTAL )
49
50 item5 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
51 item5.SetForegroundColour( wxWHITE )
52 item5.SetBackgroundColour( wxRED )
53 item5.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
54 item4.AddWindow( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
55
56 item6 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "wxPyError_ID_PROGRAMNAME", wxDefaultPosition, wxDefaultSize, 0 )
57 item6.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
58 item4.AddWindow( item6, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
59
60 item2.AddSizer( item4, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
61
62 item7 = wxBoxSizer( wxHORIZONTAL )
63
64 item8 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, 0 )
65 item8.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
66 item7.AddWindow( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
67
68 item9 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "wxPyError_ID_VERSIONNUMBER", wxDefaultPosition, wxDefaultSize, 0 )
69 item9.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
70 item7.AddWindow( item9, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
71
72 item2.AddSizer( item7, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
73
74 item10 = wxStaticText( parent, wxPyError_ID_EXTRA_VERSION_INFORMATION, "wxPyError_ID_EXTRA_VERSION_INFORMATION", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
75 item10.SetFont( wxFont( 7, wxROMAN, wxITALIC, wxNORMAL ) )
76 item2.AddWindow( item10, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
77
78 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
79
80 item11 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
81 item1.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
82
83 item12 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
84 item1.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
85
86 item0.AddSizer( item1, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
87
88 item13 = wxStaticText( parent, wxPyError_ID_TEXT3, "The Python interpreter has encountered a so-called \"un-caught exception\".", wxDefaultPosition, wxDefaultSize, 0 )
89 item0.AddWindow( item13, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
90
91 item15 = wxStaticBox( parent, -1, "Traceback" )
92 item15.SetFont( wxFont( 6, wxSWISS, wxITALIC, wxNORMAL ) )
93 parent.sizerAroundText = item14 = wxStaticBoxSizer( item15, wxVERTICAL )
94
95 item16 = wxStaticText( parent, wxPyError_ID_TEXT4,
96 "Please don't worry if this doesn't mean anything to you.\n"
97 "It will be included in the \"bug report\" mentioned below.",
98 wxDefaultPosition, wxDefaultSize, 0 )
99 item16.SetFont( wxFont( 8, wxROMAN, wxNORMAL, wxNORMAL ) )
100 item14.AddWindow( item16, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
101
102 item17 = wxTextCtrl( parent, wxPyError_ID_TEXTCTRL, "wxPyError_ID_TEXTCTRL", wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY )
103 item17.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxNORMAL ) )
104 item17.SetToolTip( wxToolTip("A \"traceback\" reports the nature and location of a Python error.") )
105 item14.AddWindow( item17, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
106
107 item0.AddSizer( item14, 1, wxALIGN_CENTRE|wxALL, 5 )
108
109 item18 = wxStaticText( parent, wxPyError_ID_TEXT5, "Please select one of the options below.", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
110 item18.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
111 item0.AddWindow( item18, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
112
113 item19 = wxFlexGridSizer( 3, 0, 0, 6 )
114 item19.AddGrowableCol( 0 )
115 item19.AddGrowableCol( 1 )
116 item19.AddGrowableCol( 2 )
117
118 item20 = wxButton( parent, wxPyError_ID_CONTINUE, "Continue", wxDefaultPosition, wxDefaultSize, 0 )
119 item20.SetDefault()
120 item19.AddWindow( item20, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
121
122 item21 = wxBoxSizer( wxHORIZONTAL )
123
124 item22 = wxButton( parent, wxPyError_ID_MAIL, "E-mail support", wxDefaultPosition, wxDefaultSize, 0 )
125 item21.AddWindow( item22, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
126
127 item23 = wxBoxSizer( wxVERTICAL )
128
129 item24 = wxStaticText( parent, wxPyError_ID_TEXT6, "Your e-mail address:", wxDefaultPosition, wxDefaultSize, 0 )
130 item24.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
131 item23.AddWindow( item24, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
132
133 item25 = wxTextCtrl( parent, wxPyError_ID_ADDRESS, "", wxDefaultPosition, wxSize(80,-1), 0 )
134 item23.AddWindow( item25, 2, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
135
136 item21.AddSizer( item23, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
137
138 item19.AddSizer( item21, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
139
140 item26 = wxButton( parent, wxPyError_ID_EXIT, "Exit immediately", wxDefaultPosition, wxDefaultSize, 0 )
141 item19.AddWindow( item26, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
142
143 item27 = wxStaticText( parent, wxPyError_ID_TEXT7, "Attempt to continue.", wxDefaultPosition, wxDefaultSize, 0 )
144 item19.AddWindow( item27, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
145
146 item28 = wxStaticText( parent, wxPyError_ID_TEXT8, "E-mail a \"bug report\" (if this is indeed a bug!).", wxDefaultPosition, wxDefaultSize, 0 )
147 item19.AddWindow( item28, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
148
149 item29 = wxStaticText( parent, wxPyError_ID_TEXT9, "Attempt to exit immediately.", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
150 item19.AddWindow( item29, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE, 5 )
151
152 item30 = wxStaticText( parent, wxPyError_ID_TEXT10, "", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
153 item30.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
154 item19.AddWindow( item30, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
155
156 item31 = wxStaticText( parent, wxPyError_ID_TEXT11, "(Please read any accompanying documentation first!)", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
157 item31.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
158 item19.AddWindow( item31, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
159
160 item32 = wxStaticText( parent, wxPyError_ID_TEXT12, "(Please note that no attempt to save unsaved data will be made.)", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
161 item32.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
162 item19.AddWindow( item32, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
163
164 item0.AddSizer( item19, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
165
166 if set_sizer == True:
167 parent.SetAutoLayout( True )
168 parent.SetSizer( item0 )
169 if call_fit == True:
170 item0.Fit( parent )
171 item0.SetSizeHints( parent )
172
173 return item0
174
175 wxPyError_wxPyError_ID_TEXT3 = 10022
176 wxPyError_ID_EXCEPTIONNAME = 10023
177 wxPyError_ID_EXTRAINFORMATION = 10024
178 wxPyError_ID_TEXT13 = 10025
179 wxPyError_ID_TEXT14 = 10026
180
181 def populate_wxPyNonFatalErrorDialog( parent, call_fit = True, set_sizer = True ):
182 item0 = wxBoxSizer( wxVERTICAL )
183
184 item1 = wxBoxSizer( wxHORIZONTAL )
185
186 item2 = wxBoxSizer( wxHORIZONTAL )
187
188 item4 = wxStaticBox( parent, -1, "Non-fatal" )
189 item4.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
190 item3 = wxStaticBoxSizer( item4, wxVERTICAL )
191
192 item5 = wxBoxSizer( wxHORIZONTAL )
193
194 item6 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
195 item6.SetForegroundColour( wxWHITE )
196 item6.SetBackgroundColour( wxRED )
197 item6.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
198 item5.AddWindow( item6, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
199
200 item7 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "wxPyError_ID_PROGRAMNAME", wxDefaultPosition, wxDefaultSize, 0 )
201 item7.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
202 item5.AddWindow( item7, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
203
204 item3.AddSizer( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
205
206 item8 = wxBoxSizer( wxHORIZONTAL )
207
208 item9 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, 0 )
209 item9.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
210 item8.AddWindow( item9, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
211
212 item10 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "wxPyError_ID_VERSIONNUMBER", wxDefaultPosition, wxDefaultSize, 0 )
213 item10.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
214 item8.AddWindow( item10, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
215
216 item3.AddSizer( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
217
218 item11 = wxStaticText( parent, wxPyError_ID_EXTRA_VERSION_INFORMATION, "wxPyError_ID_EXTRA_VERSION_INFORMATION", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
219 item11.SetFont( wxFont( 7, wxROMAN, wxITALIC, wxNORMAL ) )
220 item3.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
221
222 item2.AddSizer( item3, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
223
224 item12 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
225 item2.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
226
227 item13 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
228 item2.AddWindow( item13, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
229
230 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
231
232 item0.AddSizer( item1, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
233
234 item14 = wxStaticText( parent, wxPyError_wxPyError_ID_TEXT3, "The Python interpreter has encountered a so-called \"un-caught exception\".", wxDefaultPosition, wxDefaultSize, 0 )
235 item0.AddWindow( item14, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
236
237 item16 = wxStaticBox( parent, -1, "Exception information" )
238 item16.SetFont( wxFont( 6, wxSWISS, wxITALIC, wxNORMAL ) )
239 item15 = wxStaticBoxSizer( item16, wxVERTICAL )
240
241 item17 = wxStaticText( parent, wxPyError_ID_TEXT4,
242 "Please don't worry if this doesn't mean anything to you.\n"
243 "It will be included in the \"bug report\" mentioned below, along with a \"stack traceback\".",
244 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
245 item17.SetFont( wxFont( 8, wxROMAN, wxNORMAL, wxNORMAL ) )
246 item15.AddWindow( item17, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
247
248 item18 = wxFlexGridSizer( 2, 0, 1, 1 )
249 item18.AddGrowableCol( 1 )
250
251 item19 = wxStaticText( parent, wxPyError_ID_TEXT5, "Name:", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
252 item19.SetFont( wxFont( 10, wxROMAN, wxITALIC, wxNORMAL ) )
253 item19.SetToolTip( wxToolTip("This gives the type of the error.") )
254 item18.AddWindow( item19, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
255
256 item20 = wxStaticText( parent, wxPyError_ID_EXCEPTIONNAME, "wxPyError_ID_EXCEPTIONNAME", wxDefaultPosition, wxDefaultSize, 0 )
257 item18.AddWindow( item20, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
258
259 item21 = wxStaticText( parent, wxPyError_ID_TEXT6,
260 "Extra\n"
261 "information:",
262 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
263 item21.SetFont( wxFont( 10, wxROMAN, wxITALIC, wxNORMAL ) )
264 item18.AddWindow( item21, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
265
266 item22 = wxStaticText( parent, wxPyError_ID_EXTRAINFORMATION, "wxPyError_ID_EXTRAINFORMATION", wxDefaultPosition, wxDefaultSize, 0 )
267 item18.AddWindow( item22, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
268
269 item15.AddSizer( item18, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
270
271 item0.AddSizer( item15, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 10 )
272
273 item23 = wxStaticText( parent, wxPyError_ID_TEXT7, "Please select one of the options below.", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
274 item23.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
275 item0.AddWindow( item23, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
276
277 item24 = wxFlexGridSizer( 3, 0, 0, 6 )
278 item24.AddGrowableCol( 0 )
279 item24.AddGrowableCol( 1 )
280 item24.AddGrowableCol( 2 )
281
282 item25 = wxButton( parent, wxPyError_ID_CONTINUE, "Continue", wxDefaultPosition, wxDefaultSize, 0 )
283 item25.SetDefault()
284 item24.AddWindow( item25, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
285
286 item26 = wxBoxSizer( wxHORIZONTAL )
287
288 item27 = wxButton( parent, wxPyError_ID_MAIL, "E-mail support", wxDefaultPosition, wxDefaultSize, 0 )
289 item26.AddWindow( item27, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
290
291 item28 = wxBoxSizer( wxVERTICAL )
292
293 item29 = wxStaticText( parent, wxPyError_ID_TEXT8, "Your e-mail address:", wxDefaultPosition, wxDefaultSize, 0 )
294 item29.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
295 item28.AddWindow( item29, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
296
297 item30 = wxTextCtrl( parent, wxPyError_ID_ADDRESS, "", wxDefaultPosition, wxSize(80,-1), 0 )
298 item28.AddWindow( item30, 2, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
299
300 item26.AddSizer( item28, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
301
302 item24.AddSizer( item26, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
303
304 item31 = wxButton( parent, wxPyError_ID_EXIT, "Exit immediately", wxDefaultPosition, wxDefaultSize, 0 )
305 item24.AddWindow( item31, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
306
307 item32 = wxStaticText( parent, wxPyError_ID_TEXT9, "Attempt to continue.", wxDefaultPosition, wxDefaultSize, 0 )
308 item24.AddWindow( item32, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
309
310 item33 = wxStaticText( parent, wxPyError_ID_TEXT10, "E-mail a \"bug report\" (if this is indeed a bug!).", wxDefaultPosition, wxDefaultSize, 0 )
311 item24.AddWindow( item33, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
312
313 item34 = wxStaticText( parent, wxPyError_ID_TEXT11, "Attempt to exit immediately.", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
314 item24.AddWindow( item34, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE, 5 )
315
316 item35 = wxStaticText( parent, wxPyError_ID_TEXT12, "", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
317 item35.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
318 item24.AddWindow( item35, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
319
320 item36 = wxStaticText( parent, wxPyError_ID_TEXT13, "(Please read any accompanying documentation first!)", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
321 item36.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
322 item24.AddWindow( item36, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
323
324 item37 = wxStaticText( parent, wxPyError_ID_TEXT14, "(Please note that no attempt to save unsaved data will be made.)", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
325 item37.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
326 item24.AddWindow( item37, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
327
328 item0.AddSizer( item24, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
329
330 if set_sizer == True:
331 parent.SetAutoLayout( True )
332 parent.SetSizer( item0 )
333 if call_fit == True:
334 item0.Fit( parent )
335 item0.SetSizeHints( parent )
336
337 return item0
338
339
340 def populate_wxPyFatalErrorDialogWithTraceback( parent, call_fit = True, set_sizer = True ):
341 item0 = wxBoxSizer( wxVERTICAL )
342
343 item1 = wxBoxSizer( wxHORIZONTAL )
344
345 item3 = wxStaticBox( parent, -1, "Fatal" )
346 item3.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
347 item2 = wxStaticBoxSizer( item3, wxVERTICAL )
348
349 item4 = wxBoxSizer( wxHORIZONTAL )
350
351 item5 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
352 item5.SetForegroundColour( wxWHITE )
353 item5.SetBackgroundColour( wxRED )
354 item5.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
355 item4.AddWindow( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
356
357 item6 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "wxPyError_ID_PROGRAMNAME", wxDefaultPosition, wxDefaultSize, 0 )
358 item6.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
359 item4.AddWindow( item6, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
360
361 item2.AddSizer( item4, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
362
363 item7 = wxBoxSizer( wxHORIZONTAL )
364
365 item8 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, 0 )
366 item8.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
367 item7.AddWindow( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
368
369 item9 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "wxPyError_ID_VERSIONNUMBER", wxDefaultPosition, wxDefaultSize, 0 )
370 item9.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
371 item7.AddWindow( item9, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
372
373 item2.AddSizer( item7, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
374
375 item10 = wxStaticText( parent, wxPyError_ID_EXTRA_VERSION_INFORMATION, "wxPyError_ID_EXTRA_VERSION_INFORMATION", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
376 item10.SetFont( wxFont( 7, wxROMAN, wxITALIC, wxNORMAL ) )
377 item2.AddWindow( item10, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
378
379 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
380
381 item11 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
382 item1.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
383
384 item12 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
385 item1.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
386
387 item0.AddSizer( item1, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
388
389 item13 = wxStaticText( parent, wxPyError_ID_TEXT3, "The Python interpreter has encountered a so-called \"un-caught exception\".", wxDefaultPosition, wxDefaultSize, 0 )
390 item0.AddWindow( item13, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
391
392 item15 = wxStaticBox( parent, -1, "Traceback" )
393 item15.SetFont( wxFont( 6, wxSWISS, wxITALIC, wxNORMAL ) )
394 parent.sizerAroundText = item14 = wxStaticBoxSizer( item15, wxVERTICAL )
395
396 item16 = wxStaticText( parent, wxPyError_ID_TEXT4,
397 "Please don't worry if this doesn't mean anything to you.\n"
398 "It will be included in the \"bug report\" mentioned below.",
399 wxDefaultPosition, wxDefaultSize, 0 )
400 item16.SetFont( wxFont( 8, wxROMAN, wxNORMAL, wxNORMAL ) )
401 item14.AddWindow( item16, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
402
403 item17 = wxTextCtrl( parent, wxPyError_ID_TEXTCTRL, "wxPyError_ID_TEXTCTRL", wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY )
404 item17.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxNORMAL ) )
405 item17.SetToolTip( wxToolTip("A \"traceback\" reports the nature and location of a Python error.") )
406 item14.AddWindow( item17, 0, wxALIGN_CENTRE|wxALL, 5 )
407
408 item0.AddSizer( item14, 0, wxALIGN_CENTRE|wxALL, 5 )
409
410 item18 = wxStaticText( parent, wxPyError_ID_TEXT5, "Please select one of the options below.", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
411 item18.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
412 item0.AddWindow( item18, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
413
414 item19 = wxFlexGridSizer( 3, 0, 0, 6 )
415 item19.AddGrowableCol( 0 )
416 item19.AddGrowableCol( 1 )
417 item19.AddGrowableCol( 2 )
418
419 item20 = wxBoxSizer( wxHORIZONTAL )
420
421 item21 = wxButton( parent, wxPyError_ID_MAIL, "E-mail support", wxDefaultPosition, wxDefaultSize, 0 )
422 item20.AddWindow( item21, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
423
424 item22 = wxBoxSizer( wxVERTICAL )
425
426 item23 = wxStaticText( parent, wxPyError_ID_TEXT6, "Your e-mail address:", wxDefaultPosition, wxDefaultSize, 0 )
427 item23.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
428 item22.AddWindow( item23, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
429
430 item24 = wxTextCtrl( parent, wxPyError_ID_ADDRESS, "", wxDefaultPosition, wxSize(80,-1), 0 )
431 item22.AddWindow( item24, 2, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
432
433 item20.AddSizer( item22, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
434
435 item19.AddSizer( item20, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
436
437 item25 = wxButton( parent, wxPyError_ID_EXIT, "Exit immediately", wxDefaultPosition, wxDefaultSize, 0 )
438 item25.SetDefault()
439 item19.AddWindow( item25, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
440
441 item26 = wxStaticText( parent, wxPyError_ID_TEXT7, "E-mail a \"bug report\" (if this is indeed a bug!).", wxDefaultPosition, wxDefaultSize, 0 )
442 item19.AddWindow( item26, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
443
444 item27 = wxStaticText( parent, wxPyError_ID_TEXT8, "Attempt to exit immediately.", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
445 item19.AddWindow( item27, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE, 5 )
446
447 item28 = wxStaticText( parent, wxPyError_ID_TEXT9, "(Please read any accompanying documentation first!)", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
448 item28.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
449 item19.AddWindow( item28, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
450
451 item29 = wxStaticText( parent, wxPyError_ID_TEXT10, "(Please note that no attempt to save unsaved data will be made.)", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
452 item29.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
453 item19.AddWindow( item29, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
454
455 item0.AddSizer( item19, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
456
457 if set_sizer == True:
458 parent.SetAutoLayout( True )
459 parent.SetSizer( item0 )
460 if call_fit == True:
461 item0.Fit( parent )
462 item0.SetSizeHints( parent )
463
464 return item0
465
466
467 def populate_wxPyFatalErrorDialog( parent, call_fit = True, set_sizer = True ):
468 item0 = wxBoxSizer( wxVERTICAL )
469
470 item1 = wxBoxSizer( wxHORIZONTAL )
471
472 item3 = wxStaticBox( parent, -1, "Fatal" )
473 item3.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
474 item2 = wxStaticBoxSizer( item3, wxVERTICAL )
475
476 item4 = wxBoxSizer( wxHORIZONTAL )
477
478 item5 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
479 item5.SetForegroundColour( wxWHITE )
480 item5.SetBackgroundColour( wxRED )
481 item5.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
482 item4.AddWindow( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
483
484 item6 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "wxPyError_ID_PROGRAMNAME", wxDefaultPosition, wxDefaultSize, 0 )
485 item6.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
486 item4.AddWindow( item6, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
487
488 item2.AddSizer( item4, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
489
490 item7 = wxBoxSizer( wxHORIZONTAL )
491
492 item8 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, 0 )
493 item8.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
494 item7.AddWindow( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
495
496 item9 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "wxPyError_ID_VERSIONNUMBER", wxDefaultPosition, wxDefaultSize, 0 )
497 item9.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
498 item7.AddWindow( item9, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
499
500 item2.AddSizer( item7, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
501
502 item10 = wxStaticText( parent, wxPyError_ID_EXTRA_VERSION_INFORMATION, "wxPyError_ID_EXTRA_VERSION_INFORMATION", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
503 item10.SetFont( wxFont( 7, wxROMAN, wxITALIC, wxNORMAL ) )
504 item2.AddWindow( item10, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
505
506 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
507
508 item11 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
509 item1.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
510
511 item12 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
512 item1.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
513
514 item0.AddSizer( item1, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
515
516 item13 = wxStaticText( parent, wxPyError_ID_TEXT3, "The Python interpreter has encountered a so-called \"un-caught exception\".", wxDefaultPosition, wxDefaultSize, 0 )
517 item0.AddWindow( item13, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
518
519 item15 = wxStaticBox( parent, -1, "Exception information" )
520 item15.SetFont( wxFont( 6, wxSWISS, wxITALIC, wxNORMAL ) )
521 item14 = wxStaticBoxSizer( item15, wxVERTICAL )
522
523 item16 = wxStaticText( parent, wxPyError_ID_TEXT4,
524 "Please don't worry if this doesn't mean anything to you.\n"
525 "It will be included in the \"bug report\" mentioned below, along with a \"stack traceback\".",
526 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
527 item16.SetFont( wxFont( 8, wxROMAN, wxNORMAL, wxNORMAL ) )
528 item14.AddWindow( item16, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
529
530 item17 = wxFlexGridSizer( 2, 0, 1, 1 )
531 item17.AddGrowableCol( 1 )
532
533 item18 = wxStaticText( parent, wxPyError_ID_TEXT5, "Name:", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
534 item18.SetFont( wxFont( 10, wxROMAN, wxITALIC, wxNORMAL ) )
535 item18.SetToolTip( wxToolTip("This gives the type of the error.") )
536 item17.AddWindow( item18, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
537
538 item19 = wxStaticText( parent, wxPyError_ID_EXCEPTIONNAME, "wxPyError_ID_EXCEPTIONNAME", wxDefaultPosition, wxDefaultSize, 0 )
539 item17.AddWindow( item19, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
540
541 item20 = wxStaticText( parent, wxPyError_ID_TEXT6,
542 "Extra\n"
543 "information:",
544 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
545 item20.SetFont( wxFont( 10, wxROMAN, wxITALIC, wxNORMAL ) )
546 item17.AddWindow( item20, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
547
548 item21 = wxStaticText( parent, wxPyError_ID_EXTRAINFORMATION, "wxPyError_ID_EXTRAINFORMATION", wxDefaultPosition, wxDefaultSize, 0 )
549 item17.AddWindow( item21, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
550
551 item14.AddSizer( item17, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
552
553 item0.AddSizer( item14, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 10 )
554
555 item22 = wxStaticText( parent, wxPyError_ID_TEXT7, "Please select one of the options below.", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
556 item22.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
557 item0.AddWindow( item22, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
558
559 item23 = wxFlexGridSizer( 3, 0, 0, 6 )
560 item23.AddGrowableCol( 0 )
561 item23.AddGrowableCol( 1 )
562 item23.AddGrowableCol( 2 )
563
564 item24 = wxBoxSizer( wxHORIZONTAL )
565
566 item25 = wxButton( parent, wxPyError_ID_MAIL, "E-mail support", wxDefaultPosition, wxDefaultSize, 0 )
567 item24.AddWindow( item25, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
568
569 item26 = wxBoxSizer( wxVERTICAL )
570
571 item27 = wxStaticText( parent, wxPyError_ID_TEXT8, "Your e-mail address:", wxDefaultPosition, wxDefaultSize, 0 )
572 item27.SetFont( wxFont( 8, wxROMAN, wxITALIC, wxNORMAL ) )
573 item26.AddWindow( item27, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
574
575 item28 = wxTextCtrl( parent, wxPyError_ID_ADDRESS, "", wxDefaultPosition, wxSize(80,-1), 0 )
576 item26.AddWindow( item28, 2, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
577
578 item24.AddSizer( item26, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
579
580 item23.AddSizer( item24, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
581
582 item29 = wxButton( parent, wxPyError_ID_EXIT, "Exit immediately", wxDefaultPosition, wxDefaultSize, 0 )
583 item29.SetDefault()
584 item23.AddWindow( item29, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
585
586 item30 = wxStaticText( parent, wxPyError_ID_TEXT9, "E-mail a \"bug report\" (if this is indeed a bug!).", wxDefaultPosition, wxDefaultSize, 0 )
587 item23.AddWindow( item30, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
588
589 item31 = wxStaticText( parent, wxPyError_ID_TEXT10, "Attempt to exit immediately.", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
590 item23.AddWindow( item31, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE, 5 )
591
592 item32 = wxStaticText( parent, wxPyError_ID_TEXT11, "(Please read any accompanying documentation first!)", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
593 item32.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
594 item23.AddWindow( item32, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
595
596 item33 = wxStaticText( parent, wxPyError_ID_TEXT12, "(Please note that no attempt to save unsaved data will be made.)", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
597 item33.SetFont( wxFont( 7, wxROMAN, wxNORMAL, wxBOLD ) )
598 item23.AddWindow( item33, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
599
600 item0.AddSizer( item23, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
601
602 if set_sizer == True:
603 parent.SetAutoLayout( True )
604 parent.SetSizer( item0 )
605 if call_fit == True:
606 item0.Fit( parent )
607 item0.SetSizeHints( parent )
608
609 return item0
610
611 wxPyError_ID_HTML = 10027
612
613 def populate_wxPyNonFatalError( parent, call_fit = True, set_sizer = True ):
614 item0 = wxBoxSizer( wxVERTICAL )
615
616 item1 = wxBoxSizer( wxHORIZONTAL )
617
618 item3 = wxStaticBox( parent, -1, "Non-fatal" )
619 item3.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
620 item2 = wxStaticBoxSizer( item3, wxVERTICAL )
621
622 item4 = wxBoxSizer( wxHORIZONTAL )
623
624 item5 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
625 item5.SetForegroundColour( wxWHITE )
626 item5.SetBackgroundColour( wxRED )
627 item5.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
628 item4.AddWindow( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
629
630 item6 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "wxPyError_ID_PROGRAMNAME", wxDefaultPosition, wxDefaultSize, 0 )
631 item6.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
632 item4.AddWindow( item6, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
633
634 item2.AddSizer( item4, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
635
636 item7 = wxBoxSizer( wxHORIZONTAL )
637
638 item8 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, 0 )
639 item8.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
640 item7.AddWindow( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
641
642 item9 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "wxPyError_ID_VERSIONNUMBER", wxDefaultPosition, wxDefaultSize, 0 )
643 item9.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
644 item7.AddWindow( item9, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
645
646 item2.AddSizer( item7, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
647
648 item10 = wxStaticText( parent, wxPyError_ID_EXTRA_VERSION_INFORMATION, "wxPyError_ID_EXTRA_VERSION_INFORMATION", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
649 item10.SetFont( wxFont( 7, wxROMAN, wxITALIC, wxNORMAL ) )
650 item2.AddWindow( item10, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
651
652 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
653
654 item11 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
655 item1.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
656
657 item12 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
658 item1.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
659
660 item0.AddSizer( item1, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
661
662 parent.sizerAroundText = item13 = wxBoxSizer( wxVERTICAL )
663
664 item14 = parent.HTMLWindow = wxPyClickableHtmlWindow( parent, wxPyError_ID_HTML )
665 item13.AddWindow( item14, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
666
667 item0.AddSizer( item13, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
668
669 item15 = wxFlexGridSizer( 3, 0, 0, 6 )
670 item15.AddGrowableCol( 0 )
671 item15.AddGrowableCol( 1 )
672 item15.AddGrowableCol( 2 )
673
674 item16 = wxButton( parent, wxID_OK, "OK", wxDefaultPosition, wxDefaultSize, 0 )
675 item16.SetDefault()
676 item15.AddWindow( item16, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
677
678 item17 = wxButton( parent, wxID_CANCEL, "Cancel", wxDefaultPosition, wxDefaultSize, 0 )
679 item15.AddWindow( item17, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
680
681 item18 = wxStaticText( parent, wxPyError_ID_TEXT1, "", wxDefaultPosition, wxDefaultSize, 0 )
682 item15.AddWindow( item18, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
683
684 item19 = wxStaticText( parent, wxPyError_ID_TEXT2, "", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT )
685 item15.AddWindow( item19, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE, 5 )
686
687 item0.AddSizer( item15, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
688
689 if set_sizer == True:
690 parent.SetAutoLayout( True )
691 parent.SetSizer( item0 )
692 if call_fit == True:
693 item0.Fit( parent )
694 item0.SetSizeHints( parent )
695
696 return item0
697
698
699 def populate_wxPyFatalError( parent, call_fit = True, set_sizer = True ):
700 item0 = wxBoxSizer( wxVERTICAL )
701
702 item1 = wxBoxSizer( wxHORIZONTAL )
703
704 item3 = wxStaticBox( parent, -1, "Fatal" )
705 item3.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
706 item2 = wxStaticBoxSizer( item3, wxVERTICAL )
707
708 item4 = wxBoxSizer( wxHORIZONTAL )
709
710 item5 = wxStaticText( parent, wxPyError_ID_TEXT1, "Error in ", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
711 item5.SetForegroundColour( wxWHITE )
712 item5.SetBackgroundColour( wxRED )
713 item5.SetFont( wxFont( 21, wxSCRIPT, wxNORMAL, wxBOLD ) )
714 item4.AddWindow( item5, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
715
716 item6 = wxStaticText( parent, wxPyError_ID_PROGRAMNAME, "wxPyError_ID_PROGRAMNAME", wxDefaultPosition, wxDefaultSize, 0 )
717 item6.SetFont( wxFont( 21, wxROMAN, wxITALIC, wxNORMAL ) )
718 item4.AddWindow( item6, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
719
720 item2.AddSizer( item4, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
721
722 item7 = wxBoxSizer( wxHORIZONTAL )
723
724 item8 = wxStaticText( parent, wxPyError_ID_TEXT2, "Version ", wxDefaultPosition, wxDefaultSize, 0 )
725 item8.SetFont( wxFont( 9, wxROMAN, wxNORMAL, wxNORMAL ) )
726 item7.AddWindow( item8, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
727
728 item9 = wxStaticText( parent, wxPyError_ID_VERSIONNUMBER, "wxPyError_ID_VERSIONNUMBER", wxDefaultPosition, wxDefaultSize, 0 )
729 item9.SetFont( wxFont( 12, wxROMAN, wxNORMAL, wxBOLD ) )
730 item7.AddWindow( item9, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
731
732 item2.AddSizer( item7, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
733
734 item10 = wxStaticText( parent, wxPyError_ID_EXTRA_VERSION_INFORMATION, "wxPyError_ID_EXTRA_VERSION_INFORMATION", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE )
735 item10.SetFont( wxFont( 7, wxROMAN, wxITALIC, wxNORMAL ) )
736 item2.AddWindow( item10, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
737
738 item1.AddSizer( item2, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
739
740 item11 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP1, PythonBitmaps( 0 ), wxDefaultPosition, wxDefaultSize )
741 item1.AddWindow( item11, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
742
743 item12 = wxStaticBitmap( parent, wxPyError_ID_STATICBITMAP2, PythonBitmaps( 1 ), wxDefaultPosition, wxDefaultSize )
744 item1.AddWindow( item12, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
745
746 item0.AddSizer( item1, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
747
748 parent.sizerAroundText = item13 = wxBoxSizer( wxVERTICAL )
749
750 item14 = parent.HTMLWindow = wxPyClickableHtmlWindow( parent, wxPyError_ID_HTML )
751 item13.AddWindow( item14, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
752
753 item0.AddSizer( item13, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
754
755 item15 = wxFlexGridSizer( 2, 0, 0, 6 )
756 item15.AddGrowableCol( 0 )
757
758 item16 = wxButton( parent, wxID_OK, "OK", wxDefaultPosition, wxDefaultSize, 0 )
759 item16.SetDefault()
760 item15.AddWindow( item16, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
761
762 item18 = wxStaticText( parent, wxPyError_ID_TEXT3, "", wxDefaultPosition, wxDefaultSize, 0 )
763 item15.AddWindow( item18, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
764
765 item0.AddSizer( item15, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL, 5 )
766
767 if set_sizer == True:
768 parent.SetAutoLayout( True )
769 parent.SetSizer( item0 )
770 if call_fit == True:
771 item0.Fit( parent )
772 item0.SetSizeHints( parent )
773
774 return item0
775
776 # End of generated file