File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ def restrictConstrainedParameters(self):
320320
321321 self .setToolTips (tooltips .phasepanel )
322322 self .textCtrlA .DefaultStyle .BackgroundColour
323+ txtbg = self .textCtrlScaleFactor .DefaultStyle .BackgroundColour
323324
324325 # First the TextCtrls
325326 for key , var in self .lConstraintsMap .items ():
@@ -331,8 +332,8 @@ def restrictConstrainedParameters(self):
331332 tt .SetTip (self .constraints [var ].formula )
332333 else :
333334 textCtrl .SetEditable (True )
334- # textCtrl.SetBackgroundColour(txtbg)
335- textCtrl .SetBackgroundColour (wx .SystemSettings .GetColour (wx .SYS_COLOUR_GRAYTEXT ))
335+ textCtrl .SetBackgroundColour (txtbg )
336+ # textCtrl.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT))
336337
337338 # Now the grid
338339 rows = self .gridAtoms .GetNumberRows ()
You can’t perform that action at this time.
0 commit comments