def __init_gui(self, parent):
        # init window
        try:
            # give this process an ID other than "python", else
            # windows 7 will give it the python icon and group it
            # with other python windows in the task bar
            import ctypes
            myappid = 'code.shishnet.org/eve-mlp'
            ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
        except Exception as e:
            pass

        wx.Frame.__init__(self, parent, -1, "Mobile Launch Platform [%s]" % __version__, size=(800, 600))
        self.Bind(wx.EVT_CLOSE, self.OnWinClose)
        try:
            self.SetIcons(icon_bundle(resource("icon.ico")))
        except Exception as e:
            pass

        # bars
        self.SetMenuBar(self.__menu())
        self.statusbar = self.CreateStatusBar()

        # body of the window
        self.launcher = LauncherPanel(self, self.config)
        self.tabs = wx.Notebook(self)

        box = wx.BoxSizer(wx.HORIZONTAL)
        box.Add(self.launcher, 0, wx.EXPAND)
        box.Add(self.tabs, 1, wx.EXPAND)
        #self.SetAutoLayout(True)
        self.SetSizer(box)
        self.Layout()

        # add content to tabs
        self.news_panel = NewsPanel(self.tabs, "http://code.shishnet.org/eve-mlp/news.html")
        self.config_panel = ConfigPanel(self.tabs, self)
        self.status_panel = StatusPanel(self.tabs, self)
        self.help_panel = NewsPanel(self.tabs, resource("help.html"))

        self.tabs.AddPage(self.news_panel, "MLP News")
        self.tabs.AddPage(self.config_panel, "Settings")
        self.tabs.AddPage(self.status_panel, "Status")
        self.tabs.AddPage(self.help_panel, "Help")

        # show the window and tray icon (if desired)
        show = True
        try:
            self.icon = TrayIcon(self)
            if self.config.settings["start-tray"]:
                log.info("Start-in-tray enabled, hiding main window")
                show = False
        except Exception as e:
            log.exception("Failed to create tray icon:")
            self.icon = None

        self.status_panel.OnRefresh(None)

        if show:
            self.Show(True)
dataset/ETHPy150Open shish/eve-mlp/eve_mlp/gui/mainframe.py/MainFrame.__init_gui/original