def edit_option(self, action): selection = self.options_treeview.get_selection() model, selected = selection.get_selected() if selected is None: warning(self.main_window, "You must select the option to edit") return self._edit_option_internal(model, selected)
def edit_point(self, action): tab = self._get_current_dataset_tab() assert tab is not None treeview = tab.get_children()[0] selection = treeview.get_selection() model, selected = selection.get_selected() if selected is None: warning(self.main_window, "You must select the point to edit") return self._edit_point_internal(model, selected)
def remove_point(self, action): tab = self._get_current_dataset_tab() assert tab is not None treeview = tab.get_children()[0] selection = treeview.get_selection() model, selected = selection.get_selected() if selected is None: warning(self.main_window, "You must select the point to remove") return model.remove(selected) self.refresh()