code: def run(icon=None):
      
      app = wx.App()
      frame = myappframe.MyAppFrame(None,
                                    u'Lattice Viewer \u2014 Accelerator Online Modeling Tool')
      frame.SetSize((1024, 768))
      frame.Show()
      if icon is not None:
          frame.SetIcon(icon)
      app.MainLoop()
docs: .. versionchanged:: 2.0.0
         Remove parameter *debug*.