dialog.ShowModal()


class Frame(wx.Frame):

    def __init__(self):
        super(Frame, self).__init__(None, -1, 'My Frame')

def cause_error(self):
    raise Exception('This is a test.')

def main():
    app = wx.PySimpleApp()
How to debug wxpython applications?