only load PyQt components if installed
This commit is contained in:
parent
8a600f9d2b
commit
30216bcd1b
@ -7,10 +7,6 @@ from tmtccmd.util import ObjectIdU32, ObjectIdBase
|
|||||||
from eive_tmtc.tmtc.common import pack_mode_cmd_with_info
|
from eive_tmtc.tmtc.common import pack_mode_cmd_with_info
|
||||||
import eive_tmtc.config.object_ids as obj_ids
|
import eive_tmtc.config.object_ids as obj_ids
|
||||||
|
|
||||||
from eive_tmtc.pus_tc.prompt_parameters import (
|
|
||||||
prompt_parameters_cli,
|
|
||||||
prompt_parameters_gui,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class OpCodes:
|
class OpCodes:
|
||||||
@ -26,11 +22,15 @@ class Info:
|
|||||||
def pack_cmd_ctrl_to_prompted_mode(
|
def pack_cmd_ctrl_to_prompted_mode(
|
||||||
q: DefaultPusQueueHelper, object_id: ObjectIdU32, gui: bool
|
q: DefaultPusQueueHelper, object_id: ObjectIdU32, gui: bool
|
||||||
):
|
):
|
||||||
|
from eive_tmtc.pus_tc.prompt_parameters import (
|
||||||
|
prompt_parameters_cli,
|
||||||
|
)
|
||||||
param_list = [
|
param_list = [
|
||||||
{"name": "Mode", "defaultValue": "2"},
|
{"name": "Mode", "defaultValue": "2"},
|
||||||
{"name": "Submode", "defaultValue": "0"},
|
{"name": "Submode", "defaultValue": "0"},
|
||||||
]
|
]
|
||||||
if gui:
|
if gui:
|
||||||
|
from eive_tmtc.pus_tc.prompt_parameters import prompt_parameters_gui
|
||||||
parameters = prompt_parameters_gui(param_list)
|
parameters = prompt_parameters_gui(param_list)
|
||||||
else:
|
else:
|
||||||
parameters = prompt_parameters_cli(param_list)
|
parameters = prompt_parameters_cli(param_list)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user