Commit 218807bb authored by Tiago Sarmento's avatar Tiago Sarmento

implement ok press o clinical

parent f1f8648d
Pipeline #1833 canceled with stages
......@@ -581,6 +581,9 @@ class NativeUI(HEVClient, QMainWindow):
)
self.clinical_handler.OpenPopup.connect(self.messageCommandPopup.populatePopup)
self.clinical_handler.OpenPopup.connect(
lambda: self.display_stack.setCurrentWidget(self.messageCommandPopup)
)
self.messageCommandPopup.ClinicalSend.connect(
self.clinical_handler.sendCommands
)
......
......@@ -88,6 +88,7 @@ class ClinicalHandler(PayloadHandler):
return 0
def handle_okbutton_click(self):
print('handling ok clicks')
message, command = [], []
for key, widget in dict(self.limSpinDict, **self.setSpinDict).items():
if widget.manuallyUpdated:
......@@ -106,6 +107,7 @@ class ClinicalHandler(PayloadHandler):
command.append([widget.cmd_type, widget.cmd_code, setVal])
# create a signal emitting message, command, handler identifier - in nativeui connect to a popup widget
# command sending should occur in handler
print(message)
self.commandList = command
self.OpenPopup.emit(self, message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment