Commit 9689179b authored by Benjamin Mummery's avatar Benjamin Mummery 💻

moved resolution to a kwarg in NativeUI for easier testing

parent dba5b490
......@@ -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,
......
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