Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
218807bb
Commit
218807bb
authored
Jun 21, 2021
by
Tiago Sarmento
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement ok press o clinical
parent
f1f8648d
Pipeline
#1833
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
NativeUI.py
NativeUI/NativeUI.py
+3
-0
clinical_handler.py
NativeUI/handler_library/clinical_handler.py
+2
-0
No files found.
NativeUI/NativeUI.py
View file @
218807bb
...
...
@@ -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
)
...
...
NativeUI/handler_library/clinical_handler.py
View file @
218807bb
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment