Add log output widget

This commit is contained in:
usov_i 2020-07-28 15:12:13 +02:00
parent cffe94bf8f
commit dc92aac19f

View File

@ -322,9 +322,14 @@ def create():
config.save_as(temp_file) config.save_as(temp_file)
pyzebra.anatric(temp_file) pyzebra.anatric(temp_file)
with open(config.logfile) as f_log:
output_log.value = f_log.read()
process_button = Button(label="Process", button_type="primary") process_button = Button(label="Process", button_type="primary")
process_button.on_click(process_button_callback) process_button.on_click(process_button_callback)
output_log = TextAreaInput(height=700, disabled=True)
tab_layout = row( tab_layout = row(
column( column(
fileinput, fileinput,
@ -362,6 +367,7 @@ def create():
), ),
), ),
), ),
output_log,
) )
return Panel(child=tab_layout, title="Anatric") return Panel(child=tab_layout, title="Anatric")