Author: reinhard Date: 2009-12-10 06:54:57 -0600 (Thu, 10 Dec 2009) New Revision: 10123
Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/grid.py Log: Fix color of grid heading under MSW. Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/grid.py =================================================================== --- trunk/gnue-forms/src/uidrivers/wx/widgets/grid.py 2009-12-10 11:00:32 UTC (rev 10122) +++ trunk/gnue-forms/src/uidrivers/wx/widgets/grid.py 2009-12-10 12:54:57 UTC (rev 10123) @@ -144,6 +144,11 @@ continue span = int(getattr(item, 'Sizer__span', 1)) panel = wx.Panel(self._container) + # On MSW, the panel would end up inheriting the background + # colour of the container (3DSHADOW). So we explicitly set the + # background color here. + panel.SetBackgroundColour( + wx.SystemSettings.GetColour(wx.SYS_COLOUR_3DFACE)) box = wx.BoxSizer(wx.HORIZONTAL) panel.SetSizer(box) static = wx.StaticText(panel, -1, getattr(item, 'label') or u"") _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue