dabo Commit
Revision 7252
Date: 2012-09-22 10:06:34 -0700 (Sat, 22 Sep 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7252
Changed:
U trunk/dabo/ui/uiwx/gridRenderers.py
Log:
No logic changes; just cleaned up some formatting.
Diff:
Modified: trunk/dabo/ui/uiwx/gridRenderers.py
===================================================================
--- trunk/dabo/ui/uiwx/gridRenderers.py 2012-09-21 06:12:28 UTC (rev 7251)
+++ trunk/dabo/ui/uiwx/gridRenderers.py 2012-09-22 17:06:34 UTC (rev 7252)
@@ -70,7 +70,7 @@
syscolor = wx.SYS_COLOUR_WINDOW
bkgrd = wx.SystemSettings_GetColour(syscolor)
- dc.SetBrush( wx.Brush(bkgrd, wx.SOLID))
+ dc.SetBrush(wx.Brush(bkgrd, wx.SOLID))
try:
dc.SetPen(wx.TRANSPARENT_PEN)
@@ -100,14 +100,14 @@
dc.DrawBitmap(bitmap, rect.x+l, rect.y+t)
- def clip( self, dc, rect ):
+ def clip(self, dc, rect):
"""Setup the clipping rectangle"""
- dc.SetClippingRegion( rect.x, rect.y, rect.width, rect.height )
+ dc.SetClippingRegion(rect.x, rect.y, rect.width, rect.height)
- def unclip( self, dc ):
+ def unclip(self, dc):
"""Destroy the clipping rectangle"""
- dc.DestroyClippingRegion( )
+ dc.DestroyClippingRegion()
@@ -161,7 +161,7 @@
syscolor = wx.SYS_COLOUR_WINDOW
bkgrd = wx.SystemSettings_GetColour(syscolor)
- dc.SetBrush( wx.Brush(bkgrd, wx.SOLID))
+ dc.SetBrush(wx.Brush(bkgrd, wx.SOLID))
try:
dc.SetPen(wx.TRANSPARENT_PEN)
@@ -191,14 +191,14 @@
dc.DrawBitmap(bitmap, rect.x+l, rect.y+t)
- def clip( self, dc, rect ):
+ def clip(self, dc, rect):
"""Setup the clipping rectangle"""
- dc.SetClippingRegion( rect.x, rect.y, rect.width, rect.height )
+ dc.SetClippingRegion(rect.x, rect.y, rect.width, rect.height)
- def unclip( self, dc ):
+ def unclip(self, dc):
"""Destroy the clipping rectangle"""
- dc.DestroyClippingRegion( )
+ dc.DestroyClippingRegion()
@@ -230,31 +230,31 @@
return value
- def drawText( self, txt, attr, dc, rect):
+ def drawText(self, txt, attr, dc, rect):
"""Customize this method to set different background colors,
etc."""
dc.DrawText(txt, rect.x, rect.y)
- def clip( self, dc, rect ):
+ def clip(self, dc, rect):
"""Setup the clipping rectangle"""
- dc.SetClippingRegion( rect.x, rect.y, rect.width, rect.height )
+ dc.SetClippingRegion(rect.x, rect.y, rect.width, rect.height)
- def unclip( self, dc ):
+ def unclip(self, dc):
"""Destroy the clipping rectangle"""
- dc.DestroyClippingRegion( )
+ dc.DestroyClippingRegion()
class YesNoBoolRenderer(AbstractTextRenderer):
- def getValueText( self, grid, row, col ):
+ def getValueText(self, grid, row, col):
value = grid._Table.GetValue(row, col)
if value:
return "YES"
return "NO"
- def drawText( self, txt, attr, dc, rect):
+ def drawText(self, txt, attr, dc, rect):
if txt == "NO":
dc.SetTextForeground((128, 0, 0))
else:
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]