diff --git a/slic/gui/daqpanels/goto.py b/slic/gui/daqpanels/goto.py index 5cd97641..6022526c 100644 --- a/slic/gui/daqpanels/goto.py +++ b/slic/gui/daqpanels/goto.py @@ -153,10 +153,8 @@ class ShortcutGoToLine(wx.BoxSizer): class ReadOnlyTextCtrl(wx.TextCtrl): - def __init__(self, *args, **kwargs): - kwargs.setdefault("style", wx.TE_READONLY) - super().__init__(*args, **kwargs) - self.SetBackgroundColour(wx.LIGHT_GREY) + def __init__(self, *args, style=wx.TE_READONLY, **kwargs): + super().__init__(*args, style=style, **kwargs)