Skip to content
Snippets Groups Projects
Commit 83c75585 authored by Stefano Borini's avatar Stefano Borini
Browse files

Added notification for changing slots

parent 8135a4e0
No related branches found
No related tags found
1 merge request!76Adds change_slots event to notify UI of slot-modifying changes
from traits.api import Int, String
from traits.api import Int, String, on_trait_change
from force_bdss.api import BaseDataSourceModel
......@@ -8,3 +8,7 @@ class CSVExtractorModel(BaseDataSourceModel):
row = Int()
column = Int()
cuba_type = String()
@on_trait_change("cuba_type")
def _notify_changes_slots(self):
self.changes_slots = True
from traits.api import String
from traits.api import String, on_trait_change
from force_bdss.api import BaseKPICalculatorModel
......@@ -6,3 +6,7 @@ from force_bdss.api import BaseKPICalculatorModel
class KPIAdderModel(BaseKPICalculatorModel):
cuba_type_in = String()
cuba_type_out = String()
@on_trait_change("cuba_type_in,cuba_type_out")
def _notify_slots_changed(self):
self.changes_slots = True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment