class documentation

class TableViewWidget(InsertedObjectWidget): (source)

View In Hierarchy

Undocumented

Static Method create_headerlabel Sets options for the treeview header
Method __init__ Undocumented
Method create_toolbar This function creates a toolbar which is displayed next to the table
Method create_treeview Initializes a treeview with its model (liststore) and all its columns
Method fetch_cell_by_event Looks for the cell where the mouse clicked on it
Method get_linkurl Checks a cellvalue if it contains a link and returns only the link value
Method get_treeview Undocumented
Method old_do_size_request Undocumented
Method on_add_row Context menu: Add a row
Method on_button_press_event Displays a context-menu on right button click Opens the link of a tablecell on CTRL pressed and left button click
Method on_cell_changed Trigger after cell-editing, to transform displayed table cell into right format
Method on_cell_editing_canceled Trigger after a cell is edited but any change is skipped
Method on_cell_editing_started Trigger before cell-editing, to transform text-field data into right format
Method on_cell_focus_out Undocumented
Method on_change_columns Context menu: Edit table, run the EditTableDialog
Method on_clone_row Context menu: Clone a row
Method on_delete_row Context menu: Delete a row
Method on_focus_in After a table is selected, this function will be triggered
Method on_focus_out After a table is deselected, this function will be triggered
Method on_model_changed Undocumented
Method on_move_cursor If you try to move the cursor out of the tableditor release the cursor to the parent textview
Method on_move_row Trigger for moving a row one position up/down
Method on_open_help Context menu: Open help
Method on_open_link Context menu: Open a link, which is written in a cell
Method selection_info Info-Popup for selecting a cell before this action can be done
Method set_preferences Undocumented
Method sort_by_number_or_string No summary
Instance Variable expand Undocumented
Instance Variable model Undocumented
Instance Variable scroll_win Undocumented
Instance Variable textarea_width Undocumented
Instance Variable toolbar Undocumented
Instance Variable treeview Undocumented
Instance Variable vbox Undocumented
Method _column_alignment The column alignment must be converted from numeric to keywords
Method _init_treeview Undocumented
Instance Variable _cellinput_canceled Undocumented
Instance Variable _has_cursor Undocumented
Instance Variable _keep_toolbar_open Undocumented
Instance Variable _timer Undocumented
Instance Variable _toolbar_enabled Undocumented

Inherited from InsertedObjectWidget:

Method add Add a widget to the object
Method add_header Add an header widget on top of the object
Method do_button_press_event Undocumented
Method do_button_release_event Undocumented
Method do_popup_menu Undocumented
Method do_realize Undocumented
Method edit_object Undocumented
Method grab_cursor Emits the grab-cursor signal
Method has_cursor No summary
Method populate_popup Undocumented
Method release_cursor Emits the release-cursor signal
Method remove Undocumented
Method set_has_cursor See has_cursor()
Method set_textview_wrap_width Undocumented
Class Variable __gsignals__ Undocumented
Method _do_popup_menu Undocumented
Instance Variable _vbox Undocumented
@staticmethod
def create_headerlabel(title): (source)
Sets options for the treeview header
def __init__(self, model): (source)
def create_toolbar(self): (source)
This function creates a toolbar which is displayed next to the table
def create_treeview(self, model): (source)
Initializes a treeview with its model (liststore) and all its columns
def fetch_cell_by_event(self, event, treeview): (source)
Looks for the cell where the mouse clicked on it
def get_linkurl(self, celltext): (source)
Checks a cellvalue if it contains a link and returns only the link value
def get_treeview(self): (source)

Undocumented

def old_do_size_request(self, requisition): (source)

Undocumented

def on_add_row(self, action): (source)
Context menu: Add a row
def on_button_press_event(self, treeview, event): (source)
Displays a context-menu on right button click Opens the link of a tablecell on CTRL pressed and left button click
def on_cell_changed(self, cellrenderer, path, text, liststore, colid): (source)
Trigger after cell-editing, to transform displayed table cell into right format
def on_cell_editing_canceled(self, renderer): (source)
Trigger after a cell is edited but any change is skipped
def on_cell_editing_started(self, cellrenderer, editable, path, liststore, colid): (source)
Trigger before cell-editing, to transform text-field data into right format
def on_cell_focus_out(self, editable, event, cellrenderer, path, liststore, colid): (source)

Undocumented

def on_change_columns(self, action): (source)
Context menu: Edit table, run the EditTableDialog
def on_clone_row(self, action): (source)
Context menu: Clone a row
def on_delete_row(self, action): (source)
Context menu: Delete a row
def on_focus_in(self, treeview, event, toolbar): (source)
After a table is selected, this function will be triggered
def on_focus_out(self, treeview, event, toolbar): (source)
After a table is deselected, this function will be triggered
def on_model_changed(self, model): (source)

Undocumented

def on_move_cursor(self, view, step_size, count): (source)
If you try to move the cursor out of the tableditor release the cursor to the parent textview
def on_move_row(self, action, direction): (source)
Trigger for moving a row one position up/down
def on_open_help(self, action): (source)
Context menu: Open help
def on_open_link(self, action, link): (source)
Context menu: Open a link, which is written in a cell
def selection_info(self): (source)
Info-Popup for selecting a cell before this action can be done
def set_preferences(self, preferences): (source)

Undocumented

def sort_by_number_or_string(self, liststore, treeiter1, treeiter2, colid): (source)
Sort algorithm for sorting numbers correctly and putting 10 after 3. This part can be improved in future to support also currencies, dates, floats, etc. :param liststore: model of treeview :param treeiter1: treeiter 1 :param treeiter2: treeiter 2 :param colid: a column number :return: -1 / first data is smaller than second, 0 / equality, 1 / else
model = (source)

Undocumented

scroll_win = (source)

Undocumented

textarea_width: int = (source)

Undocumented

toolbar = (source)

Undocumented

treeview = (source)

Undocumented

vbox = (source)

Undocumented

def _column_alignment(self, aligntext): (source)
The column alignment must be converted from numeric to keywords
def _init_treeview(self, model): (source)

Undocumented

_cellinput_canceled: bool = (source)

Undocumented

_keep_toolbar_open: bool = (source)

Undocumented

_timer = (source)

Undocumented

_toolbar_enabled = (source)

Undocumented