From 0a09b5684718326b6f84bef435fa02fc0e4b93d3 Mon Sep 17 00:00:00 2001 From: Long Yang Date: Tue, 1 Dec 2020 08:18:03 -0500 Subject: [PATCH] MAINT: fix background color of parameter boxes In py3 wxpython, background color is not white even if no constrains applied. --- src/diffpy/pdfgui/gui/phaseconfigurepanel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/diffpy/pdfgui/gui/phaseconfigurepanel.py b/src/diffpy/pdfgui/gui/phaseconfigurepanel.py index 6999e7fb..55f64ee0 100644 --- a/src/diffpy/pdfgui/gui/phaseconfigurepanel.py +++ b/src/diffpy/pdfgui/gui/phaseconfigurepanel.py @@ -266,7 +266,8 @@ def restrictConstrainedParameters(self): tt.SetTip(self.constraints[var].formula) else: textCtrl.SetEditable(True) - textCtrl.SetBackgroundColour(txtbg) + #textCtrl.SetBackgroundColour(txtbg) + textCtrl.SetBackgroundColour(wx.WHITE) # Now the grid rows = self.gridAtoms.GetNumberRows()