if self.GetNumberRows() > 0:
rect = self.CellToRect(0,col)
else:
- rect = wxRect()
+ rect = wx.Rect()
rect.height = self.GetColLabelSize()
rect.width = self.GetColSize(col)
if self.GetNumberCols() > 0:
rect = self.CellToRect(row,0)
else:
- rect = wxRect()
+ rect = wx.Rect()
rect.width = self.GetRowLabelSize()
rect.height = self.GetRowSize(row)