Commit 9cd04236 authored by Ilya Novoselov's avatar Ilya Novoselov

Relax toolbar combobox and button sizes

parent 5c451301
......@@ -45,7 +45,7 @@ def make_sized_button(*args):
return make_button(*args, size = buttonSize)
def make_autosize_button(*args):
return make_button(*args, size = (-1, buttonSize[1]), style = wx.BU_EXACTFIT)
return make_button(*args, size = (-1, -1), style = wx.BU_EXACTFIT)
def make_custom_button(root, parentpanel, i, style = 0):
btn = make_button(parentpanel, i.label, root.procbutton,
......@@ -395,7 +395,7 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
self.Add(root.rescanbtn, 0, wx.TOP | wx.LEFT, 0)
root.serialport = wx.ComboBox(parentpanel, -1, choices = root.scanserial(),
style = wx.CB_DROPDOWN, size = (-1, 25))
style = wx.CB_DROPDOWN)
root.serialport.SetToolTip(wx.ToolTip(_("Select Port Printer is connected to")))
root.rescanports()
self.Add(root.serialport)
......@@ -404,7 +404,7 @@ def MainToolbar(root, parentpanel = None, use_wrapsizer = False):
root.baud = wx.ComboBox(parentpanel, -1,
choices = ["2400", "9600", "19200", "38400",
"57600", "115200", "250000"],
style = wx.CB_DROPDOWN, size = (100, 25))
style = wx.CB_DROPDOWN, size = (100, -1))
root.baud.SetToolTip(wx.ToolTip(_("Select Baud rate for printer communication")))
try:
root.baud.SetValue("115200")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment