forked from M-Labs/artiq
gui: do not attempt moninj on windows
This commit is contained in:
parent
34771ade67
commit
84b07607ad
|
@ -98,18 +98,22 @@ def main():
|
||||||
args.server, args.port_notify))
|
args.server, args.port_notify))
|
||||||
atexit.register(lambda: loop.run_until_complete(d_results.sub_close()))
|
atexit.register(lambda: loop.run_until_complete(d_results.sub_close()))
|
||||||
|
|
||||||
d_ttl_dds = MonInj()
|
if os.name != "nt":
|
||||||
loop.run_until_complete(d_ttl_dds.start(args.server, args.port_notify))
|
d_ttl_dds = MonInj()
|
||||||
atexit.register(lambda: loop.run_until_complete(d_ttl_dds.stop()))
|
loop.run_until_complete(d_ttl_dds.start(args.server, args.port_notify))
|
||||||
|
atexit.register(lambda: loop.run_until_complete(d_ttl_dds.stop()))
|
||||||
|
|
||||||
d_params = ParametersDock()
|
d_params = ParametersDock()
|
||||||
loop.run_until_complete(d_params.sub_connect(
|
loop.run_until_complete(d_params.sub_connect(
|
||||||
args.server, args.port_notify))
|
args.server, args.port_notify))
|
||||||
atexit.register(lambda: loop.run_until_complete(d_params.sub_close()))
|
atexit.register(lambda: loop.run_until_complete(d_params.sub_close()))
|
||||||
|
|
||||||
area.addDock(d_ttl_dds.dds_dock, "top")
|
if os.name != "nt":
|
||||||
area.addDock(d_ttl_dds.ttl_dock, "above", d_ttl_dds.dds_dock)
|
area.addDock(d_ttl_dds.dds_dock, "top")
|
||||||
area.addDock(d_results, "above", d_ttl_dds.ttl_dock)
|
area.addDock(d_ttl_dds.ttl_dock, "above", d_ttl_dds.dds_dock)
|
||||||
|
area.addDock(d_results, "above", d_ttl_dds.ttl_dock)
|
||||||
|
else:
|
||||||
|
area.addDock(d_results, "top")
|
||||||
area.addDock(d_params, "above", d_results)
|
area.addDock(d_params, "above", d_results)
|
||||||
area.addDock(d_explorer, "above", d_params)
|
area.addDock(d_explorer, "above", d_params)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue