def GetColLabelValue(self, col):
return self.colnames[col]
- def GetRowLabelValues(self, row):
- return self.data[row][0]
+ def GetRowLabelValue(self, row):
+ return "row %03d" % int(self.data[row][0])
def GetValue(self, row, col):
return str(self.data[row][1].get(self.GetColLabelValue(col), ""))
dc.SetBrush(wx.Brush(wx.BLUE, wx.SOLID))
dc.SetPen(wx.Pen(wx.BLUE, 1, wx.SOLID))
else:
- dc.SetBrush(wxBrush(wxWHITE, wxSOLID))
- dc.SetPen(wxPen(wxWHITE, 1, wxSOLID))
+ dc.SetBrush(wx.Brush(wx.WHITE, wx.SOLID))
+ dc.SetPen(wx.Pen(wx.WHITE, 1, wx.SOLID))
dc.DrawRectangleRect(rect)
#dc.DrawRectangle((rect.x, rect.y), (rect.width, rect.height))
dc.Blit((rect.x+1, rect.y+1), (width, height),
image,
- (0, 0), wxCOPY, True)
+ (0, 0), wx.COPY, True)
class MegaFontRenderer(Grid.PyGridCellRenderer):
dc.SetBrush(wx.Brush(wx.BLUE, wx.SOLID))
dc.SetPen(wx.Pen(wx.BLUE, 1, wx.SOLID))
else:
- dc.SetBrush(wxBrush(wxWHITE, wxSOLID))
- dc.SetPen(wxPen(wxWHITE, 1, wxSOLID))
+ dc.SetBrush(wx.Brush(wx.WHITE, wx.SOLID))
+ dc.SetPen(wx.Pen(wx.WHITE, 1, wx.SOLID))
dc.DrawRectangleRect(rect)
#dc.DrawRectangle((rect.x, rect.y), (rect.width, rect.height))