diff --git a/esphomeflasher/gui.py b/esphomeflasher/gui.py index 89f5a4c..bc2813c 100644 --- a/esphomeflasher/gui.py +++ b/esphomeflasher/gui.py @@ -59,8 +59,6 @@ def __init__(self, parent, title): self._firmware = None self._port = None - self._build_status_bar() - self._build_menu_bar() self._init_ui() sys.stdout = RedirectText(self.console_ctrl) @@ -142,30 +140,6 @@ def _get_serial_ports(self): ports.append("") return ports - def _build_status_bar(self): - self.statusBar = self.CreateStatusBar(2, wx.STB_SIZEGRIP) - self.statusBar.SetStatusWidths([-2, -1]) - status_text = "Welcome to esphomeflasher (based on PyFlasher)" - self.statusBar.SetStatusText(status_text, 0) - - def _build_menu_bar(self): - self.menuBar = wx.MenuBar() - - # File menu - file_menu = wx.Menu() - wx.App.SetMacExitMenuItemId(wx.ID_EXIT) - exit_item = file_menu.Append(wx.ID_EXIT, "E&xit\tCtrl-Q", "Exit esphomeflasher") - exit_item.SetBitmap(Exit.GetBitmap()) - self.Bind(wx.EVT_MENU, self._on_exit_app, exit_item) - self.menuBar.Append(file_menu, "&File") - - # Help menu - help_menu = wx.Menu() - help_menu.Append(wx.ID_ABOUT, '&About esphomeflasher', 'About') - self.menuBar.Append(help_menu, '&Help') - - self.SetMenuBar(self.menuBar) - # Menu methods def _on_exit_app(self, event): self.Close(True)