Index: simulator/plugins/treatmentranges/loader.py =================================================================== diff -u -r1779b6711f3791e8bf570e06ddb4c2e7d2a52e18 -rf4523ffcaff0d27f7392c943f0a487fcb01a7d34 --- simulator/plugins/treatmentranges/loader.py (.../loader.py) (revision 1779b6711f3791e8bf570e06ddb4c2e7d2a52e18) +++ simulator/plugins/treatmentranges/loader.py (.../loader.py) (revision f4523ffcaff0d27f7392c943f0a487fcb01a7d34) @@ -1,14 +1,20 @@ """ The Treatment Ranges ui loader """ +# Python import os -from simulator.dynamicloader import DynamicLoader +# Qt from PySide2 import QtWidgets from PySide2.QtCore import QTimer from PySide2.QtCore import Slot -from dialin.squish import denaliMessages +# parent +from simulator.dynamicloader import DynamicLoader +# hd Simulator from dialin.ui.hd_simulator import HDSimulator +# plugin specific +# -- none -- + class Loader(DynamicLoader): """ The Treatment Ranges ui loader @@ -28,7 +34,6 @@ super().__init__(os.path.dirname(__file__), hd_simulator) print(" ---------- ", self.hd_simulator) - def _init_loader(self): """ finds and creates widgets @@ -65,7 +70,9 @@ sends the duration message :return: none """ - denaliMessages.setTreatmentTime(self.spnDurationMax.value() * 60, value) + self.hd_simulator.cmd_set_treatment_time( + self.spnDurationMax.value() * 60, value + ) @Slot() def do_ranges_data(self): @@ -79,7 +86,7 @@ self.sldDurationValue.setMinimum(duration_min * 60) self.sldDurationValue.setMaximum(duration_max * 60) - denaliMessages.setTreatmentParamRanges( + self.hd_simulator.cmd_set_treatment_parameter_ranges( duration_min, duration_max, self.spnUFVolumeMin.value(),