Index: TD_TreatmentAdjustmentsBolusVolume/loader.py =================================================================== diff -u -r5bcfcac949d3a6c28ea9555ec5dcf7de978a06fd -r85dcfe80f3e4c9d51423fa66d98647f83ebcd85c --- TD_TreatmentAdjustmentsBolusVolume/loader.py (.../loader.py) (revision 5bcfcac949d3a6c28ea9555ec5dcf7de978a06fd) +++ TD_TreatmentAdjustmentsBolusVolume/loader.py (.../loader.py) (revision 85dcfe80f3e4c9d51423fa66d98647f83ebcd85c) @@ -54,25 +54,20 @@ initializes the widgets connections :return: none """ - self.tbRspSend .clicked .connect(self.do_bolus_adjustments_response ) - self.tbRspReset .clicked .connect(self.init_bolus_adjustments_response ) + self.tbRspSend .clicked .connect(self.do_bolus_adjustments_response ) + self.tbRspReset .clicked .connect(self._init_widgets ) def _init_widgets(self): """ initializes the widgets' properties :return: none """ - self.init_bolus_adjustments_request() - self.init_bolus_adjustments_response() + self.lbReqBolusVolume .setText("--") + self.sbRejectionReason .setValue(0) @Slot() - def init_bolus_adjustments_request(self): - self.lbReqBolusVolume.setText("--") - - - @Slot() def handle_bolus_adjustments_request(self, message, timestamp = 0.0): """ Called when the user requests pressure adjustements from UI @@ -86,11 +81,6 @@ @Slot() - def init_bolus_adjustments_response(self): - self.sbRejectionReason.setValue(0) - - - @Slot() def do_bolus_adjustments_response(self): """ the slot for sending pressure adjustments response