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
TableRowBase:addadd_anchoradd_centeredanchorattention_lostaugment_mouse_eventbg_colorbg_imageborder_colorborder_widthcall_handlercall_parent_handlercell_rectclick_itemdefer_drawingdismissdrawdraw_item_and_highlightdraw_overdraw_posthighlightdraw_prehighlightfg_colorfocusfocus_switchfontget_cursorget_focusget_margin_rectget_rootget_top_widgetget_visibleglobal_to_localhas_focushighlight_styleinheritedinvalidateis_gl_containeritem_is_selectedkey_downkey_uplocal_to_globalmarginmenu_barnum_colsnum_rowsparentparent_resizedpresentrectrelative_moderemoveremove_anchorresizedscale_bgscroll_button_colorscroll_button_sizesel_colorsel_widthset_parentset_size_for_texttab_stopvisible