def DrawValue(self, dc, rect, property, text):
print 'DrawValue:', text
#dc.SetPen( wxPen(propertyGrid->GetCellTextColour(), 1, wxSOLID) )
#pen = dc.GetPen()
#print pen.GetColour(), pen.GetStyle(), wx.PENSTYLE_SOLID
#dc.SetPen(wx.Pen(wx.Colour(0, 0, 255, 255), 1, wx.SOLID))
cell_renderer = property.GetCellRenderer(1)
cell_renderer.DrawText(dc, rect, 0, text) # property.get_value())#rect.x+15, rect.y)
#dc.DrawText(property.get_value(), rect.x+15, rect.y)
# if not property.IsValueUnspecified():
# dc.DrawText(property.get_value(), rect.x+5, rect.y)
评论列表
文章目录