forked from M-Labs/artiq
applets/simple: fix error msg, style
This commit is contained in:
parent
787ed65d00
commit
f3d8ac301c
|
@ -3,7 +3,7 @@ import argparse
|
|||
import asyncio
|
||||
import os
|
||||
|
||||
from quamash import QEventLoop, QtWidgets, QtGui, QtCore
|
||||
from quamash import QEventLoop, QtWidgets, QtCore
|
||||
|
||||
from artiq.protocols.sync_struct import Subscriber, process_mod
|
||||
from artiq.protocols import pyon
|
||||
|
@ -34,7 +34,7 @@ class AppletIPCClient(AsyncioChildComm):
|
|||
self.close_cb()
|
||||
elif reply["action"] != "embed_done":
|
||||
logger.error("unexpected action reply to embed request: %s",
|
||||
action)
|
||||
reply["action"])
|
||||
self.close_cb()
|
||||
|
||||
def fix_initial_size(self):
|
||||
|
@ -78,8 +78,8 @@ class SimpleApplet:
|
|||
|
||||
self.argparser = argparse.ArgumentParser(description=cmd_description)
|
||||
|
||||
self.argparser.add_argument("--update-delay", type=float,
|
||||
default=default_update_delay,
|
||||
self.argparser.add_argument(
|
||||
"--update-delay", type=float, default=default_update_delay,
|
||||
help="time to wait after a mod (buffering other mods) "
|
||||
"before updating (default: %(default).2f)")
|
||||
|
||||
|
@ -93,8 +93,9 @@ class SimpleApplet:
|
|||
"--port", default=3250, type=int,
|
||||
help="TCP port to connect to")
|
||||
|
||||
self.argparser.add_argument("--embed", default=None,
|
||||
help="embed into GUI", metavar="IPC_ADDRESS")
|
||||
self.argparser.add_argument(
|
||||
"--embed", default=None, help="embed into GUI",
|
||||
metavar="IPC_ADDRESS")
|
||||
|
||||
self._arggroup_datasets = self.argparser.add_argument_group("datasets")
|
||||
|
||||
|
|
Loading…
Reference in New Issue