dlg = wx.xml.XmlResource.Get().LoadDialog(mainFrame, "my_dialog") dlg.ShowModal()