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
9689179b
Commit
9689179b
authored
Jun 24, 2021
by
Benjamin Mummery
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved resolution to a kwarg in NativeUI for easier testing
parent
dba5b490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
NativeUI.py
NativeUI/NativeUI.py
+2
-2
No files found.
NativeUI/NativeUI.py
View file @
9689179b
...
...
@@ -99,7 +99,7 @@ class NativeUI(HEVClient, QMainWindow):
q_send_personal (Slot) - send personal information to the MCU.
"""
def
__init__
(
self
,
resolution
:
list
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
resolution
:
list
=
[
1920
,
1080
]
,
**
kwargs
):
super
()
.
__init__
(
*
args
,
**
kwargs
)
# Set the resolution of the display window
...
...
@@ -737,7 +737,7 @@ if __name__ == "__main__":
# setup pyqtplot widget
app
=
QApplication
(
sys
.
argv
)
dep
=
NativeUI
(
interpret_resolution
(
command_line_args
.
resolution
))
dep
=
NativeUI
(
resolution
=
interpret_resolution
(
command_line_args
.
resolution
))
set_window_size
(
dep
,
resolution
=
command_line_args
.
resolution
,
...
...
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