Skip to content

Commit

Permalink
Replace reload button
Browse files Browse the repository at this point in the history
Use a regular one instead of the bitmap button.
  • Loading branch information
marcelstoer committed Apr 8, 2021
1 parent d742c2f commit 0122639
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ def on_pick_file(event):
self.choice = wx.Choice(panel, choices=self._get_serial_ports())
self.choice.Bind(wx.EVT_CHOICE, on_select_port)
self._select_configured_port()
bmp = images.Reload.GetBitmap()
reload_button = wx.BitmapButton(panel, id=wx.ID_ANY, bitmap=bmp,
size=(bmp.GetWidth() + 2, bmp.GetHeight() + 2))

reload_button = wx.Button(panel, label="Reload")
reload_button.Bind(wx.EVT_BUTTON, on_reload)
reload_button.SetToolTip("Reload serial device list")

Expand All @@ -221,8 +220,7 @@ def on_pick_file(event):

serial_boxsizer = wx.BoxSizer(wx.HORIZONTAL)
serial_boxsizer.Add(self.choice, 1, wx.EXPAND)
serial_boxsizer.AddStretchSpacer(0)
serial_boxsizer.Add(reload_button)
serial_boxsizer.Add(reload_button, flag=wx.LEFT, border=10)

baud_boxsizer = wx.BoxSizer(wx.HORIZONTAL)

Expand Down

0 comments on commit 0122639

Please sign in to comment.