labscript_utils.qtwidgets.outputbox.OutputBox
- class labscript_utils.qtwidgets.outputbox.OutputBox(container, scrollback_lines=1000)[source]
Bases:
OutputBox
A subclass of qtutils.outputbox.OutputBox configured with security from labconfig.
- __init__(container, scrollback_lines=1000)[source]
Instantiate an outputBox and insert into container widget. Set the number of lines of scrollback to keep. Set a zmq_context for creating sockets, otherwise zmq.Context.instance() will be used. set bind_address, defaulting to the local interface.
Methods
__init__
(container[, scrollback_lines])Instantiate an outputBox and insert into container widget.
add_text
()close
()fileno
()flush
()isatty
()mainloop
(socket)new_socket
()output
(text[, red])Wrapper around write() with only option for normal text or bold red text, retained for backward compatibility but deprecated.
print
(*values, **kwargs)Print to the output box.
shutdown
()Stop the mainloop.
write
(text[, color, bold, italic, charformat])Write to the output box as if it were a file.
Attributes
LINE_MID
LINE_NEW
LINE_START
MAX_LINES_BATCH
supports_rich_write