AGW Logo

agw_title XLSRenderer

This class is responsible for actually drawing the cell in the grid.

hierarchy Inheritance Diagram

Inheritance diagram for: XLSRenderer

Inheritance diagram of XLSRenderer


method_summary Methods Summary

__init__Default class constructor.
DrawDraw the given cell on the provided dc inside the given rectangle using

API Class API

class XLSRenderer(gridlib.PyGridCellRenderer)[source]

This class is responsible for actually drawing the cell in the grid.



__init__(cell)[source]

Default class constructor.

Parameters:cell – an instance of XLSCell.


Draw(grid, attr, dc, rect, row, col, isSelected)[source]

Draw the given cell on the provided dc inside the given rectangle using default or selected state corresponding to the isSelected value.

Parameters:
  • grid – an instance of wx.grid.Grid;
  • attr – an instance of wx.grid.GridCellAttr;
  • dc – an instance of wx.DC;
  • rect – an instance of wx.Rect, representing the cell rectangle;
  • row – the row in which this cell lives;
  • col – the column in which this cell lives;
  • isSelectedTrue if the cell is selected, False otherwise.
Tree

Table Of Contents

Previous topic

XLSGrid

Next topic

XLSRichText