Skip to content

Commit 0a09b56

Browse files
MAINT: fix background color of parameter boxes
In py3 wxpython, background color is not white even if no constrains applied.
1 parent a9de126 commit 0a09b56

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/diffpy/pdfgui/gui/phaseconfigurepanel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ def restrictConstrainedParameters(self):
266266
tt.SetTip(self.constraints[var].formula)
267267
else:
268268
textCtrl.SetEditable(True)
269-
textCtrl.SetBackgroundColour(txtbg)
269+
#textCtrl.SetBackgroundColour(txtbg)
270+
textCtrl.SetBackgroundColour(wx.WHITE)
270271

271272
# Now the grid
272273
rows = self.gridAtoms.GetNumberRows()

0 commit comments

Comments
 (0)