bag.io.gui

Module Contents

Classes

StdinThread

A QT worker thread that reads stdin.

LogWidget

A Logger window widget.

LogViewer

A Simple window to see process log in real time..

Functions

app_start()

start_viewer()

add_log(proc, tag, fname)

remove_log(proc, tag)

close(proc)

class bag.io.gui.StdinThread(parent)[source]

Bases: PyQt5.QtCore.QThread

A QT worker thread that reads stdin.

update[source]
run()[source]
class bag.io.gui.LogWidget(parent=None)[source]

Bases: PyQt5.QtWidgets.QFrame

A Logger window widget.

Note: due to QPlainTextEdit always adding an extra newline when calling appendPlainText(), we keep track of internal buffer and only print output one line at a time. This may cause some message to not display immediately.

clear_log()[source]
save_log()[source]
print_file(file_obj)[source]
class bag.io.gui.LogViewer[source]

Bases: PyQt5.QtWidgets.QWidget

A Simple window to see process log in real time..

closeEvent(evt)[source]
parse_cmd(cmd)[source]
change_log(new_idx)[source]
update_logfile(fname)[source]
remove_log(log_tag)[source]
add_log(log_tag, log_file)[source]
bag.io.gui.app_start()[source]
bag.io.gui.start_viewer()[source]
bag.io.gui.add_log(proc, tag, fname)[source]
bag.io.gui.remove_log(proc, tag)[source]
bag.io.gui.close(proc)[source]