Module albow.table.TableHeaderView

Source code
from albow.table.TableRowBase import TableRowBase


class TableHeaderView(TableRowBase):

    def __init__(self, width, height):
        super().__init__((width, height), 1, False)

    def row_data(self, row):
        pass

    def draw_table_cell(self, surf, data, cell_rect, column):
        self.parent.draw_header_cell(surf, cell_rect, column)

Classes

class TableHeaderView (width, height)

The PaletteView class is an abstract base class for implementing tool palettes and similar things. A PaletteView displays an array of items which can be selected by clicking, with the selected item being highlighted. There is provision for scrolling, so that the palette can contain more items than are displayed at one time.

The PaletteView does not maintain the items themselves or keep track of which one is selected; these things are responsibilities of the subclass.

:param cell_size: :param nrows: :param scrolling:

Source code
class TableHeaderView(TableRowBase):

    def __init__(self, width, height):
        super().__init__((width, height), 1, False)

    def row_data(self, row):
        pass

    def draw_table_cell(self, surf, data, cell_rect, column):
        self.parent.draw_header_cell(surf, cell_rect, column)

Ancestors

Methods

def draw_table_cell(self, surf, data, cell_rect, column)
Source code
def draw_table_cell(self, surf, data, cell_rect, column):
    self.parent.draw_header_cell(surf, cell_rect, column)
def row_data(self, row)
Source code
def row_data(self, row):
    pass

Inherited members