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 codeclass 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)AncestorsMethods- def draw_table_cell(self, surf, data, cell_rect, column)
- 
Source codedef draw_table_cell(self, surf, data, cell_rect, column): self.parent.draw_header_cell(surf, cell_rect, column)
- def row_data(self, row)
- 
Source codedef row_data(self, row): pass
 Inherited members- TableRowBase:- add
- add_anchor
- add_centered
- anchor
- attention_lost
- augment_mouse_event
- bg_color
- bg_image
- border_color
- border_width
- call_handler
- call_parent_handler
- cell_rect
- click_item
- defer_drawing
- dismiss
- draw
- draw_item_and_highlight
- draw_over
- draw_posthighlight
- draw_prehighlight
- fg_color
- focus
- focus_switch
- font
- get_cursor
- get_focus
- get_margin_rect
- get_root
- get_top_widget
- get_visible
- global_to_local
- has_focus
- highlight_style
- inherited
- invalidate
- is_gl_container
- item_is_selected
- key_down
- key_up
- local_to_global
- margin
- menu_bar
- num_cols
- num_rows
- parent
- parent_resized
- present
- rect
- relative_mode
- remove
- remove_anchor
- resized
- scale_bg
- scroll_button_color
- scroll_button_size
- sel_color
- sel_width
- set_parent
- set_size_for_text
- tab_stop
- visible