Skip to content
Snippets Groups Projects
Commit 53948b80 authored by Robin Mueller's avatar Robin Mueller
Browse files

testing processes

parent d00738a1
No related branches found
No related tags found
No related merge requests found
...@@ -54,22 +54,18 @@ def run_tmtc_client(use_gui: bool): ...@@ -54,22 +54,18 @@ def run_tmtc_client(use_gui: bool):
LOGGER.info("Starting TMTC Handler") LOGGER.info("Starting TMTC Handler")
tmtc_handler = TmTcHandler() tmtc_handler = TmTcHandler()
if use_gui: if use_gui:
LOGGER.info("Starting TMTC GUI") start_with_gui(tmtc_handler)
tmtc_frontend = TmTcFrontend(tmtc_handler)
frontend_process = Process(target=tmtc_frontend.init_ui())
frontend_process.start()
tmtc_handler.start()
else: else:
tmtc_handler.start() tmtc_handler.start()
# At some later point, the program will run permanently and be able to take commands.
# For now we put a permanent loop here so the program
# doesn't exit automatically (TM Listener is daemonic)
while True:
pass
def start_with_gui(tmtc_handler: TmTcHandler):
LOGGER.info("Starting TMTC GUI")
tmtc_frontend = TmTcFrontend(tmtc_handler)
frontend_process = Process(target=tmtc_frontend.init_ui())
frontend_process.start()
tmtc_handler.start()
#!/usr/bin/python3.7 #!/usr/bin/python3.7
""" """
@file tmtc_frontend.py @file tmtc_frontend.py
@date @date 01.11.2019
01.11.2019 @brief This is part of the TMTC client developed by the SOURCE project by KSat
@brief @description GUI Testing for TMTC client
This is part of the TMTC client developed by the SOURCE project by KSat
@description
GUI Testing for TMTC client
@manual @manual
@author: @author R. Mueller
R. Mueller
""" """
from multiprocessing import Process from multiprocessing import Process
...@@ -22,16 +18,9 @@ import threading ...@@ -22,16 +18,9 @@ import threading
LOGGER = get_logger() LOGGER = get_logger()
"""
# A first simple version has drop down menus to chose all necessary options TODO: Make it look nicer. Add SOURCE or KSat logo.
# which are normally handled by the args parser. """
# when pressing save, all chosen values get passed to the globals file (OBSW_Config)
# To start the program, another button with start needs to be set up.
# A third button to perform a keyboard interrupt should be implemented
# include a really nice source badge and make it large !
# plan this on paper first...
# Step 1: Huge Mission Badge in Tkinter window because that is cool.
# Step 2: Simple buttons to run servce tests around the badge.
class SingleCommandTable(QTableWidget): class SingleCommandTable(QTableWidget):
def __init__(self): def __init__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment