File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,8 @@ def on_pick_file(event):
210210 self .choice = wx .Choice (panel , choices = self ._get_serial_ports ())
211211 self .choice .Bind (wx .EVT_CHOICE , on_select_port )
212212 self ._select_configured_port ()
213- bmp = images .Reload .GetBitmap ()
214- reload_button = wx .BitmapButton (panel , id = wx .ID_ANY , bitmap = bmp ,
215- size = (bmp .GetWidth () + 2 , bmp .GetHeight () + 2 ))
213+
214+ reload_button = wx .Button (panel , label = "Reload" )
216215 reload_button .Bind (wx .EVT_BUTTON , on_reload )
217216 reload_button .SetToolTip ("Reload serial device list" )
218217
@@ -221,8 +220,7 @@ def on_pick_file(event):
221220
222221 serial_boxsizer = wx .BoxSizer (wx .HORIZONTAL )
223222 serial_boxsizer .Add (self .choice , 1 , wx .EXPAND )
224- serial_boxsizer .AddStretchSpacer (0 )
225- serial_boxsizer .Add (reload_button )
223+ serial_boxsizer .Add (reload_button , flag = wx .LEFT , border = 10 )
226224
227225 baud_boxsizer = wx .BoxSizer (wx .HORIZONTAL )
228226
You can’t perform that action at this time.
0 commit comments