Table Of Contents

Previous topic

XLSGrid

Next topic

XLSRichText

This Page

phoenix_title XLSRenderer

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


class_hierarchy Inheritance Diagram

Inheritance diagram for class XLSRenderer

Inheritance diagram of XLSRenderer


super_classes Known Superclasses

grid.PyGridCellRenderer


method_summary Methods Summary

__init__ Default class constructor.
Draw Draw the given cell on the provided dc inside the given rectangle using

api Class API



class XLSRenderer(gridlib.PyGridCellRenderer)

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


Methods



__init__(self, cell)

Default class constructor.

Parameters:cell – an instance of XLSCell.


Draw(self, grid, attr, dc, rect, row, col, isSelected)

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 grid.Grid;
  • attr – an instance of grid.GridCellAttr;
  • dc – an instance of DC;
  • rect – an instance of 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.