Commit 71fced82 authored by Guillaume Seguin's avatar Guillaume Seguin

Don't explicitely set templabel width when changing label

parent 1a9da946
...@@ -252,7 +252,7 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None, mini_mode ...@@ -252,7 +252,7 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None, mini_mode
def tempdisp_setlabel(label): def tempdisp_setlabel(label):
wx.StaticText.SetLabel(root.tempdisp, label) wx.StaticText.SetLabel(root.tempdisp, label)
root.tempdisp.Wrap(root.tempdisp.GetSize().width) root.tempdisp.Wrap(root.tempdisp.GetSize().width)
root.tempdisp.SetSize(root.tempdisp.GetBestSize()) root.tempdisp.SetSize((-1, root.tempdisp.GetBestSize().height))
root.tempdisp.SetLabel = tempdisp_setlabel root.tempdisp.SetLabel = tempdisp_setlabel
add("tempdisp", root.tempdisp, flag = wx.EXPAND) add("tempdisp", root.tempdisp, flag = wx.EXPAND)
......
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