1 #-----------------------------------------------------------------------------
2 # Python source generated by wxDesigner from file: ErrorDialogs.wdr
3 # Do not modify this file, all changes will be lost!
4 #-----------------------------------------------------------------------------
6 # Include wxWindows' modules
7 from wxPython
.wx
import *
10 from wxPython
.lib
.PythonBitmaps
import *
11 from wxPython
.html
import *
12 from wxPython
.lib
.ClickableHtmlWindow
import *
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
39 def populate_wxPyNonFatalErrorDialogWithTraceback( parent
, call_fit
= True, set_sizer
= True ):
40 item0
= wxBoxSizer( wxVERTICAL
)
42 item1
= wxBoxSizer( wxHORIZONTAL
)
44 item3
= wxStaticBox( parent
, -1, "Non-fatal" )
45 item3
.SetFont( wxFont( 9, wxSWISS
, wxNORMAL
, wxBOLD
) )
46 item2
= wxStaticBoxSizer( item3
, wxVERTICAL
)
48 item4
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
60 item2
.AddSizer( item4
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
62 item7
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
72 item2
.AddSizer( item7
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
78 item1
.AddSizer( item2
, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
80 item11
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP1
, PythonBitmaps( 0 ), wxDefaultPosition
, wxDefaultSize
)
81 item1
.AddWindow( item11
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
83 item12
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP2
, PythonBitmaps( 1 ), wxDefaultPosition
, wxDefaultSize
)
84 item1
.AddWindow( item12
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
86 item0
.AddSizer( item1
, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 5 )
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 )
91 item15
= wxStaticBox( parent
, -1, "Traceback" )
92 item15
.SetFont( wxFont( 6, wxSWISS
, wxITALIC
, wxNORMAL
) )
93 parent
.sizerAroundText
= item14
= wxStaticBoxSizer( item15
, wxVERTICAL
)
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 )
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 )
107 item0
.AddSizer( item14
, 1, wxALIGN_CENTRE|wxALL
, 5 )
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 )
113 item19
= wxFlexGridSizer( 3, 0, 0, 6 )
114 item19
.AddGrowableCol( 0 )
115 item19
.AddGrowableCol( 1 )
116 item19
.AddGrowableCol( 2 )
118 item20
= wxButton( parent
, wxPyError_ID_CONTINUE
, "Continue", wxDefaultPosition
, wxDefaultSize
, 0 )
120 item19
.AddWindow( item20
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
122 item21
= wxBoxSizer( wxHORIZONTAL
)
124 item22
= wxButton( parent
, wxPyError_ID_MAIL
, "E-mail support", wxDefaultPosition
, wxDefaultSize
, 0 )
125 item21
.AddWindow( item22
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
127 item23
= wxBoxSizer( wxVERTICAL
)
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 )
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 )
136 item21
.AddSizer( item23
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
138 item19
.AddSizer( item21
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
140 item26
= wxButton( parent
, wxPyError_ID_EXIT
, "Exit immediately", wxDefaultPosition
, wxDefaultSize
, 0 )
141 item19
.AddWindow( item26
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
143 item27
= wxStaticText( parent
, wxPyError_ID_TEXT7
, "Attempt to continue.", wxDefaultPosition
, wxDefaultSize
, 0 )
144 item19
.AddWindow( item27
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
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 )
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 )
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 )
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 )
164 item0
.AddSizer( item19
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
166 if set_sizer
== True:
167 parent
.SetAutoLayout( True )
168 parent
.SetSizer( item0
)
171 item0
.SetSizeHints( parent
)
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
181 def populate_wxPyNonFatalErrorDialog( parent
, call_fit
= True, set_sizer
= True ):
182 item0
= wxBoxSizer( wxVERTICAL
)
184 item1
= wxBoxSizer( wxHORIZONTAL
)
186 item2
= wxBoxSizer( wxHORIZONTAL
)
188 item4
= wxStaticBox( parent
, -1, "Non-fatal" )
189 item4
.SetFont( wxFont( 9, wxSWISS
, wxNORMAL
, wxBOLD
) )
190 item3
= wxStaticBoxSizer( item4
, wxVERTICAL
)
192 item5
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
204 item3
.AddSizer( item5
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
206 item8
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
216 item3
.AddSizer( item8
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
222 item2
.AddSizer( item3
, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
224 item12
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP1
, PythonBitmaps( 0 ), wxDefaultPosition
, wxDefaultSize
)
225 item2
.AddWindow( item12
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
227 item13
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP2
, PythonBitmaps( 1 ), wxDefaultPosition
, wxDefaultSize
)
228 item2
.AddWindow( item13
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
230 item1
.AddSizer( item2
, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
232 item0
.AddSizer( item1
, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 5 )
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 )
237 item16
= wxStaticBox( parent
, -1, "Exception information" )
238 item16
.SetFont( wxFont( 6, wxSWISS
, wxITALIC
, wxNORMAL
) )
239 item15
= wxStaticBoxSizer( item16
, wxVERTICAL
)
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 )
248 item18
= wxFlexGridSizer( 2, 0, 1, 1 )
249 item18
.AddGrowableCol( 1 )
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 )
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 )
259 item21
= wxStaticText( parent
, wxPyError_ID_TEXT6
,
262 wxDefaultPosition
, wxDefaultSize
, wxALIGN_CENTRE
)
263 item21
.SetFont( wxFont( 10, wxROMAN
, wxITALIC
, wxNORMAL
) )
264 item18
.AddWindow( item21
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
269 item15
.AddSizer( item18
, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 5 )
271 item0
.AddSizer( item15
, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 10 )
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 )
277 item24
= wxFlexGridSizer( 3, 0, 0, 6 )
278 item24
.AddGrowableCol( 0 )
279 item24
.AddGrowableCol( 1 )
280 item24
.AddGrowableCol( 2 )
282 item25
= wxButton( parent
, wxPyError_ID_CONTINUE
, "Continue", wxDefaultPosition
, wxDefaultSize
, 0 )
284 item24
.AddWindow( item25
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
286 item26
= wxBoxSizer( wxHORIZONTAL
)
288 item27
= wxButton( parent
, wxPyError_ID_MAIL
, "E-mail support", wxDefaultPosition
, wxDefaultSize
, 0 )
289 item26
.AddWindow( item27
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
291 item28
= wxBoxSizer( wxVERTICAL
)
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 )
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 )
300 item26
.AddSizer( item28
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
302 item24
.AddSizer( item26
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
304 item31
= wxButton( parent
, wxPyError_ID_EXIT
, "Exit immediately", wxDefaultPosition
, wxDefaultSize
, 0 )
305 item24
.AddWindow( item31
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
307 item32
= wxStaticText( parent
, wxPyError_ID_TEXT9
, "Attempt to continue.", wxDefaultPosition
, wxDefaultSize
, 0 )
308 item24
.AddWindow( item32
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
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 )
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 )
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 )
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 )
328 item0
.AddSizer( item24
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
330 if set_sizer
== True:
331 parent
.SetAutoLayout( True )
332 parent
.SetSizer( item0
)
335 item0
.SetSizeHints( parent
)
340 def populate_wxPyFatalErrorDialogWithTraceback( parent
, call_fit
= True, set_sizer
= True ):
341 item0
= wxBoxSizer( wxVERTICAL
)
343 item1
= wxBoxSizer( wxHORIZONTAL
)
345 item3
= wxStaticBox( parent
, -1, "Fatal" )
346 item3
.SetFont( wxFont( 9, wxSWISS
, wxNORMAL
, wxBOLD
) )
347 item2
= wxStaticBoxSizer( item3
, wxVERTICAL
)
349 item4
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
361 item2
.AddSizer( item4
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
363 item7
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
373 item2
.AddSizer( item7
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
379 item1
.AddSizer( item2
, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
381 item11
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP1
, PythonBitmaps( 0 ), wxDefaultPosition
, wxDefaultSize
)
382 item1
.AddWindow( item11
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
384 item12
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP2
, PythonBitmaps( 1 ), wxDefaultPosition
, wxDefaultSize
)
385 item1
.AddWindow( item12
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
387 item0
.AddSizer( item1
, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 5 )
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 )
392 item15
= wxStaticBox( parent
, -1, "Traceback" )
393 item15
.SetFont( wxFont( 6, wxSWISS
, wxITALIC
, wxNORMAL
) )
394 parent
.sizerAroundText
= item14
= wxStaticBoxSizer( item15
, wxVERTICAL
)
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 )
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 )
408 item0
.AddSizer( item14
, 0, wxALIGN_CENTRE|wxALL
, 5 )
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 )
414 item19
= wxFlexGridSizer( 3, 0, 0, 6 )
415 item19
.AddGrowableCol( 0 )
416 item19
.AddGrowableCol( 1 )
417 item19
.AddGrowableCol( 2 )
419 item20
= wxBoxSizer( wxHORIZONTAL
)
421 item21
= wxButton( parent
, wxPyError_ID_MAIL
, "E-mail support", wxDefaultPosition
, wxDefaultSize
, 0 )
422 item20
.AddWindow( item21
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
424 item22
= wxBoxSizer( wxVERTICAL
)
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 )
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 )
433 item20
.AddSizer( item22
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
435 item19
.AddSizer( item20
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
437 item25
= wxButton( parent
, wxPyError_ID_EXIT
, "Exit immediately", wxDefaultPosition
, wxDefaultSize
, 0 )
439 item19
.AddWindow( item25
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
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 )
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 )
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 )
455 item0
.AddSizer( item19
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
457 if set_sizer
== True:
458 parent
.SetAutoLayout( True )
459 parent
.SetSizer( item0
)
462 item0
.SetSizeHints( parent
)
467 def populate_wxPyFatalErrorDialog( parent
, call_fit
= True, set_sizer
= True ):
468 item0
= wxBoxSizer( wxVERTICAL
)
470 item1
= wxBoxSizer( wxHORIZONTAL
)
472 item3
= wxStaticBox( parent
, -1, "Fatal" )
473 item3
.SetFont( wxFont( 9, wxSWISS
, wxNORMAL
, wxBOLD
) )
474 item2
= wxStaticBoxSizer( item3
, wxVERTICAL
)
476 item4
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
488 item2
.AddSizer( item4
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
490 item7
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
500 item2
.AddSizer( item7
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
506 item1
.AddSizer( item2
, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
508 item11
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP1
, PythonBitmaps( 0 ), wxDefaultPosition
, wxDefaultSize
)
509 item1
.AddWindow( item11
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
511 item12
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP2
, PythonBitmaps( 1 ), wxDefaultPosition
, wxDefaultSize
)
512 item1
.AddWindow( item12
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
514 item0
.AddSizer( item1
, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 5 )
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 )
519 item15
= wxStaticBox( parent
, -1, "Exception information" )
520 item15
.SetFont( wxFont( 6, wxSWISS
, wxITALIC
, wxNORMAL
) )
521 item14
= wxStaticBoxSizer( item15
, wxVERTICAL
)
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 )
530 item17
= wxFlexGridSizer( 2, 0, 1, 1 )
531 item17
.AddGrowableCol( 1 )
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 )
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 )
541 item20
= wxStaticText( parent
, wxPyError_ID_TEXT6
,
544 wxDefaultPosition
, wxDefaultSize
, wxALIGN_CENTRE
)
545 item20
.SetFont( wxFont( 10, wxROMAN
, wxITALIC
, wxNORMAL
) )
546 item17
.AddWindow( item20
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
551 item14
.AddSizer( item17
, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 5 )
553 item0
.AddSizer( item14
, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 10 )
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 )
559 item23
= wxFlexGridSizer( 3, 0, 0, 6 )
560 item23
.AddGrowableCol( 0 )
561 item23
.AddGrowableCol( 1 )
562 item23
.AddGrowableCol( 2 )
564 item24
= wxBoxSizer( wxHORIZONTAL
)
566 item25
= wxButton( parent
, wxPyError_ID_MAIL
, "E-mail support", wxDefaultPosition
, wxDefaultSize
, 0 )
567 item24
.AddWindow( item25
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
569 item26
= wxBoxSizer( wxVERTICAL
)
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 )
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 )
578 item24
.AddSizer( item26
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
580 item23
.AddSizer( item24
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
582 item29
= wxButton( parent
, wxPyError_ID_EXIT
, "Exit immediately", wxDefaultPosition
, wxDefaultSize
, 0 )
584 item23
.AddWindow( item29
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
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 )
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 )
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 )
600 item0
.AddSizer( item23
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
602 if set_sizer
== True:
603 parent
.SetAutoLayout( True )
604 parent
.SetSizer( item0
)
607 item0
.SetSizeHints( parent
)
611 wxPyError_ID_HTML
= 10027
613 def populate_wxPyNonFatalError( parent
, call_fit
= True, set_sizer
= True ):
614 item0
= wxBoxSizer( wxVERTICAL
)
616 item1
= wxBoxSizer( wxHORIZONTAL
)
618 item3
= wxStaticBox( parent
, -1, "Non-fatal" )
619 item3
.SetFont( wxFont( 9, wxSWISS
, wxNORMAL
, wxBOLD
) )
620 item2
= wxStaticBoxSizer( item3
, wxVERTICAL
)
622 item4
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
634 item2
.AddSizer( item4
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
636 item7
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
646 item2
.AddSizer( item7
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
652 item1
.AddSizer( item2
, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
654 item11
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP1
, PythonBitmaps( 0 ), wxDefaultPosition
, wxDefaultSize
)
655 item1
.AddWindow( item11
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
657 item12
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP2
, PythonBitmaps( 1 ), wxDefaultPosition
, wxDefaultSize
)
658 item1
.AddWindow( item12
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
660 item0
.AddSizer( item1
, 0, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 5 )
662 parent
.sizerAroundText
= item13
= wxBoxSizer( wxVERTICAL
)
664 item14
= parent
.HTMLWindow
= wxPyClickableHtmlWindow( parent
, wxPyError_ID_HTML
)
665 item13
.AddWindow( item14
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
667 item0
.AddSizer( item13
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
669 item15
= wxFlexGridSizer( 3, 0, 0, 6 )
670 item15
.AddGrowableCol( 0 )
671 item15
.AddGrowableCol( 1 )
672 item15
.AddGrowableCol( 2 )
674 item16
= wxButton( parent
, wxID_OK
, "OK", wxDefaultPosition
, wxDefaultSize
, 0 )
676 item15
.AddWindow( item16
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
678 item17
= wxButton( parent
, wxID_CANCEL
, "Cancel", wxDefaultPosition
, wxDefaultSize
, 0 )
679 item15
.AddWindow( item17
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
681 item18
= wxStaticText( parent
, wxPyError_ID_TEXT1
, "", wxDefaultPosition
, wxDefaultSize
, 0 )
682 item15
.AddWindow( item18
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
684 item19
= wxStaticText( parent
, wxPyError_ID_TEXT2
, "", wxDefaultPosition
, wxDefaultSize
, wxALIGN_RIGHT
)
685 item15
.AddWindow( item19
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE
, 5 )
687 item0
.AddSizer( item15
, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
689 if set_sizer
== True:
690 parent
.SetAutoLayout( True )
691 parent
.SetSizer( item0
)
694 item0
.SetSizeHints( parent
)
699 def populate_wxPyFatalError( parent
, call_fit
= True, set_sizer
= True ):
700 item0
= wxBoxSizer( wxVERTICAL
)
702 item1
= wxBoxSizer( wxHORIZONTAL
)
704 item3
= wxStaticBox( parent
, -1, "Fatal" )
705 item3
.SetFont( wxFont( 9, wxSWISS
, wxNORMAL
, wxBOLD
) )
706 item2
= wxStaticBoxSizer( item3
, wxVERTICAL
)
708 item4
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
720 item2
.AddSizer( item4
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
722 item7
= wxBoxSizer( wxHORIZONTAL
)
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 )
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 )
732 item2
.AddSizer( item7
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
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 )
738 item1
.AddSizer( item2
, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
740 item11
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP1
, PythonBitmaps( 0 ), wxDefaultPosition
, wxDefaultSize
)
741 item1
.AddWindow( item11
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
743 item12
= wxStaticBitmap( parent
, wxPyError_ID_STATICBITMAP2
, PythonBitmaps( 1 ), wxDefaultPosition
, wxDefaultSize
)
744 item1
.AddWindow( item12
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
746 item0
.AddSizer( item1
, 1, wxADJUST_MINSIZE|wxGROW|wxALIGN_CENTER_VERTICAL|wxALL
, 5 )
748 parent
.sizerAroundText
= item13
= wxBoxSizer( wxVERTICAL
)
750 item14
= parent
.HTMLWindow
= wxPyClickableHtmlWindow( parent
, wxPyError_ID_HTML
)
751 item13
.AddWindow( item14
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
753 item0
.AddSizer( item13
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
755 item15
= wxFlexGridSizer( 2, 0, 0, 6 )
756 item15
.AddGrowableCol( 0 )
758 item16
= wxButton( parent
, wxID_OK
, "OK", wxDefaultPosition
, wxDefaultSize
, 0 )
760 item15
.AddWindow( item16
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
762 item18
= wxStaticText( parent
, wxPyError_ID_TEXT3
, "", wxDefaultPosition
, wxDefaultSize
, 0 )
763 item15
.AddWindow( item18
, 0, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
765 item0
.AddSizer( item15
, 1, wxADJUST_MINSIZE|wxALIGN_CENTRE|wxALL
, 5 )
767 if set_sizer
== True:
768 parent
.SetAutoLayout( True )
769 parent
.SetSizer( item0
)
772 item0
.SetSizeHints( parent
)
776 # End of generated file