Index: simulator/plugins/GeneralProgressMessage/loader.py =================================================================== diff -u -r2204a65b0af94e7e555f0f4207fd2701c164d1d5 -r12408471ebe8f39c87bd0242a2d5e36f122175d4 --- simulator/plugins/GeneralProgressMessage/loader.py (.../loader.py) (revision 2204a65b0af94e7e555f0f4207fd2701c164d1d5) +++ simulator/plugins/GeneralProgressMessage/loader.py (.../loader.py) (revision 12408471ebe8f39c87bd0242a2d5e36f122175d4) @@ -19,10 +19,11 @@ """ The Saline Bolus ui loader class """ + rbHD: QtWidgets.QRadioButton + rbDG: QtWidgets.QRadioButton leMessageID: QtWidgets.QLineEdit leTargetMax: QtWidgets.QLineEdit sldTimeout: QtWidgets.QSlider - sldTimeout: QtWidgets.QSlider sldCountdown: QtWidgets.QSlider def __init__(self, hd_simulator: HDSimulator): @@ -33,6 +34,8 @@ finds and creates widgets :return: none """ + self.rbHD = self.find_radio_button('rbHD') + self.rbDG = self.find_radio_button('rbDG') self.leMessageID = self.find_line_edit('leMessageID') self.leTargetMax = self.find_line_edit('leTargetMax') self.sldTimeout = self.find_slider('sldTimeout') @@ -61,6 +64,7 @@ :return: none """ self.sldTimeout.setMaximum(int(value)) + self.sldCountdown.setMaximum(int(value)) @Slot() def do_data(self): @@ -72,4 +76,4 @@ message_id = self.leMessageID.text() timeout = self.sldTimeout.value() countdown = self.sldCountdown.value() - self.hd_simulator.cmd_send_general_progress_data(int(message_id), timeout, countdown) + self.hd_simulator.cmd_send_general_progress_data(int(message_id), timeout, countdown, self.rbHD.isChecked())