Pygauge 'label' readability improvement (shadows)

This commit is contained in:
HomeWorld
2010-10-21 13:04:14 +03:00
parent a1b80f7e7c
commit b72582c53e

View File

@@ -347,7 +347,7 @@ class PyGauge(wx.PyWindow):
r.width = w
dc.DrawRectangleRect(r)
dc.SetTextForeground(wx.Colour(255,255,255))
standardFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
if "__WXMAC__" in wx.PlatformInfo :
@@ -357,8 +357,15 @@ class PyGauge(wx.PyWindow):
standardFont.SetPointSize(fsize)
dc.SetFont(standardFont)
r = copy.copy(rect)
r.left +=1
r.top +=1
formatStr = "{0:." + str(self._fractionDigits) + "f}%"
dc.SetTextForeground(wx.Colour(53,53,53))
dc.DrawLabel(formatStr.format(value), r, wx.ALIGN_CENTER)
dc.SetTextForeground(wx.Colour(255,255,255))
dc.DrawLabel(formatStr.format(value), rect, wx.ALIGN_CENTER)
def OUT_CIRC (self, t, b, c, d):