Source code for optimeed.visualize.gui.widgets.graphsVisualWidget.examplesActionOnClick.on_click_remove_trace
from optimeed.visualize.gui.widgets.widget_graphs_visual import on_graph_click_interface
[docs]class on_graph_click_remove_trace(on_graph_click_interface):
def __init__(self, theDataLink):
"""
:param theDataLink: :class:`~optimeed.visualize.high_level.LinkDataGraph.LinkDataGraph`
"""
self.theDataLink = theDataLink
[docs] def graph_clicked(self, theGraphVisual, index_graph, index_trace, _):
self.theDataLink.remove_trace(index_graph, index_trace)