Index: simulator/plugins/createtreatment/loader.py =================================================================== diff -u -r1779b6711f3791e8bf570e06ddb4c2e7d2a52e18 -rf4523ffcaff0d27f7392c943f0a487fcb01a7d34 --- simulator/plugins/createtreatment/loader.py (.../loader.py) (revision 1779b6711f3791e8bf570e06ddb4c2e7d2a52e18) +++ simulator/plugins/createtreatment/loader.py (.../loader.py) (revision f4523ffcaff0d27f7392c943f0a487fcb01a7d34) @@ -1,12 +1,17 @@ """ The Heparin ui loader class """ +# Python import os -from simulator.dynamicloader import DynamicLoader +# Qt from PySide2 import QtWidgets 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): @@ -27,6 +32,7 @@ def __init__(self, hd_simulator: HDSimulator): super().__init__(os.path.dirname(__file__), hd_simulator) + print(" ---------- ", self.hd_simulator) def _init_loader(self): """ @@ -101,14 +107,3 @@ volume = self.sldUFVolume.value() self.hd_simulator.cmd_send_uf_treatment_response(False, reason, volume) self.lblCreateAction.setText('Rejected ' + "{}".format(reason)) - - @Slot() - def do_data(self, value): - """ - the slot which is called to send the data - by calling the denaliMessage API setTreatmentHeparinData - :return: none - """ - volume = value * 0.1 - denaliMessages.setTreatmentHeparinData(volume) - self.lblCumulative.setNum(volume)