Fixed selection issues that were probably introduced by the merge from the
toolbar branch.
This commit is contained in:
parent
d9fd4fc127
commit
b1bfe1fe3e
|
@ -119,8 +119,7 @@ class FluentApp:
|
|||
toolbar_state = self._plot_toolbar.get_mode()
|
||||
window.remove(self._plot_toolbar)
|
||||
else:
|
||||
"Setting DEAULT in fluents"
|
||||
toolbar_state = "DEFAULT"
|
||||
toolbar_state = "default"
|
||||
|
||||
if view:
|
||||
self._plot_toolbar = view.get_toolbar()
|
||||
|
|
|
@ -25,12 +25,12 @@ class Project:
|
|||
|
||||
def add_selection_observer(self, observer):
|
||||
self._selection_observers.append(observer)
|
||||
observer.selection_changed(self.get_selection())
|
||||
observer.selection_changed(None, self.get_selection())
|
||||
|
||||
def notify_selection_listeners(self, dim_name):
|
||||
"""Notifies observers"""
|
||||
for observer in self._selection_observers:
|
||||
observer.selection_changed(self.get_selection())
|
||||
observer.selection_changed(dim_name, self.get_selection())
|
||||
|
||||
def add_dataset_observer(self, observer):
|
||||
self._dataset_observers.append(observer)
|
||||
|
|
|
@ -139,7 +139,7 @@ class DimListController:
|
|||
values = (selection.title, selection, dataset.get_dim_name(0))
|
||||
self.selstore.insert_after(i, None, values)
|
||||
|
||||
def selection_changed(self, selection):
|
||||
def selection_changed(self, dim_name, selection):
|
||||
"""Callback function from Project."""
|
||||
|
||||
for dim in selection.dims():
|
||||
|
|
Reference in New Issue