grapa.frontend.frames_main.GUIFrameTree

class grapa.frontend.frames_main.GUIFrameTree(master, application: Application, **kwargs)

Bases: object

Handles the panel box with the Tree displaying all properties Contains a Frame, to be embedded in a wider application (.frame.pack()) Some methods will call methods of application

__init__(master, application: Application, **kwargs)

Methods

__init__(master, application, **kwargs)

forget_selected_curves()

Empty memory wich Curves were actually sold

get_tree_active_curve([multiple])

Return 2 lists with following structure: [idx0, idx1, ...], [key0, key1, ...] Each element corresponds to a selected line in the Treeview.

store_selected_curves()

Store selected Curves and attributes to restore upon update_ui

update_ui()

Update content of Treeview

forget_selected_curves()

Empty memory wich Curves were actually sold

get_tree_active_curve(multiple=True)

Return 2 lists with following structure: [idx0, idx1, …], [key0, key1, …] Each element corresponds to a selected line in the Treeview. idx: curve index, -1 for header key: selected attribute

Parameters:

multiple – if True, returns information related to the line returned by .selection(). If False, return multiple, according to .focus().

Returns:

2 lists with following structure: [idx0, idx1, …], [key0, key1, …]

store_selected_curves()

Store selected Curves and attributes to restore upon update_ui

update_ui()

Update content of Treeview