Author: reinhard
Date: 2009-12-07 16:03:50 -0600 (Mon, 07 Dec 2009)
New Revision: 10100
Modified:
trunk/gnue-forms/src/uidrivers/wx/widgets/grid.py
Log:
Added a border to grid column headers so they align better with the text in the
grid.
Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/grid.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx/widgets/grid.py 2009-12-07 20:32:26 UTC
(rev 10099)
+++ trunk/gnue-forms/src/uidrivers/wx/widgets/grid.py 2009-12-07 22:03:50 UTC
(rev 10100)
@@ -145,7 +145,7 @@
box = wx.BoxSizer(wx.HORIZONTAL)
panel.SetSizer(box)
static = wx.StaticText(panel, -1, getattr(item, 'label') or
u"")
- box.Add(static, 1, wx.EXPAND)
+ box.Add(static, 1, wx.EXPAND | wx.LEFT | wx.RIGHT, border=3)
sizer.Add(panel, (linenum, index), (1, span), wx.EXPAND)
index += span
num_cols = max(num_cols, index)
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue