From 01226396526cdcb37452f00119d63f303b225993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Thu, 8 Apr 2021 23:20:07 +0200 Subject: [PATCH] Replace reload button Use a regular one instead of the bitmap button. --- Main.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Main.py b/Main.py index 8c1cbb6..da25fcf 100644 --- a/Main.py +++ b/Main.py @@ -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") @@ -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)