Index: simulator/run.py =================================================================== diff -u -r3aedad8989d0e9877702c1658f5150e807ce8b1f -r87a1d3676f718f9f6328ac7c2b5da5aa1a0271c2 --- simulator/run.py (.../run.py) (revision 3aedad8989d0e9877702c1658f5150e807ce8b1f) +++ simulator/run.py (.../run.py) (revision 87a1d3676f718f9f6328ac7c2b5da5aa1a0271c2) @@ -40,7 +40,7 @@ """ initializing the QApplication app and the main container QWidget window. - :return: + :return: none """ global app, window app = QtWidgets.QApplication(sys.argv) @@ -51,7 +51,7 @@ def start_app(): """ shows the main container window - :return: + :return: none """ global app, window window.show() @@ -61,7 +61,7 @@ def load_ui(): """ loads the ui file of the GUI - :return: + :return: none """ global app, window ui_file = QFile(ui_file_name) @@ -75,7 +75,7 @@ def setup_saline_adjustment(): """ sets up the treatment saline bolus adjustment GUI section - :return: + :return: none """ global app, window global btnSalineAccept, btnSalineReject @@ -92,7 +92,7 @@ def setup_saline_data(): """ sets up the treatment saline bolus data sender GUI section - :return: + :return: none """ global app, window global sldSalineTarget, sldSalineCumulative, sldSalineVolume @@ -107,7 +107,7 @@ def setup_treatment_states(): """ sets up the treatment saline bolus states GUI section - :return: + :return: none """ global app, window global tblSalineSubMode, tblSalineUFStates, tblSalineSalineStates @@ -126,6 +126,7 @@ def do_accept(): """ the slot for accept saline bolus button + :return: none """ target = cmbSalineAcceptTarget.currentText() denaliMessages.setSalineBolusResponse(True, 0, target) @@ -136,6 +137,7 @@ def do_reject(): """ the slot for accept saline bolus button + :return: none """ reason = spnSalineRejectReason.value() denaliMessages.setSalineBolusResponse(False, reason, 0) @@ -148,7 +150,7 @@ the slot for saline bolus state change :param row : row of the selected item in the list of saline bolus states :param column: column of the selected item in the list of saline bolus states - :return: + :return: none """ sub_mode = tblSalineSubMode.verticalHeaderItem(tblSalineSubMode.currentRow()).text() uf_state = tblSalineUFStates.verticalHeaderItem(tblSalineUFStates.currentRow()).text() @@ -161,7 +163,7 @@ """ the slot which is called to send the saline bolus data by calling the denaliMessage API setTreatmentSalineBolusData - :return: + :return: none """ denaliMessages.setTreatmentSalineBolusData(sldSalineTarget.value(), sldSalineCumulative.value(), sldSalineVolume.value()) @@ -170,7 +172,7 @@ def main(): """ the main function which initializes the Simulator and starts it. - :return: + :return: none """ utils.tstStart(__file__) init_app() @@ -184,3 +186,4 @@ if __name__ == "__main__": main() +