-def ErrorDialogsDemoPanelFunc( parent, call_fit = true, set_sizer = true ):
-    item0 = wxBoxSizer( wxVERTICAL )
-    
-    item1 = wxStaticText( parent, ID_TEXT, "Please select one of the buttons below for an example using explicit errors...", wxDefaultPosition, wxDefaultSize, 0 )
-    item0.AddWindow( item1, 0, wxALIGN_CENTRE|wxALL, 5 )
+def ErrorDialogsDemoPanelFunc( parent, call_fit = True, set_sizer = True ):
+    item0 = wx.BoxSizer( wx.VERTICAL )
+
+    item1 = wx.StaticText(
+        parent, ID_TEXT, 
+        "Please select one of the buttons below for an example using explicit errors..."
+        )
+        
+    item0.AddWindow( item1, 0, wx.ALIGN_CENTRE|wx.ALL, 5 )
+
+    item2 = wx.FlexGridSizer( 0, 2, 0, 0 )
+
+    item3 = wx.Button( parent, ID_BUTTON_wxPyNonFatalError, "wxPyNonFatalError")
+    item2.AddWindow( item3, 0, wx.ALIGN_CENTRE|wx.ALL, 5 )