Skip to content

Commit 344abff

Browse files
committed
Comply with dataset config panels
1 parent 6662527 commit 344abff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/diffpy/pdfgui/gui/phaseconfigurepanel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)