Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
Remove menu and status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
OttoWinter committed Nov 8, 2018
1 parent e459fe4 commit 7ec35ed
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions esphomeflasher/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7ec35ed

Please sign in to comment.