added exporting reports from config tool

This commit is contained in:
UpstreamData
2022-05-13 15:23:51 -06:00
parent b9b91293fe
commit 0d123d5dd8
4 changed files with 469 additions and 64 deletions

View File

@@ -1,6 +1,7 @@
import PySimpleGUI as sg
import asyncio
import sys
from tools.cfg_util.boards import boards_report
from tools.cfg_util.imgs import TkImages
from tools.cfg_util.scan import btn_scan
from tools.cfg_util.commands import (
@@ -132,6 +133,11 @@ async def ui():
if event == "boards_refresh":
_table = "boards_table"
asyncio.create_task(btn_refresh(_table, value[_table]))
if event == "boards_report_file":
print(value["boards_report_file"])
if not value["boards_report_file"] == "":
asyncio.create_task(boards_report(value["boards_report_file"]))
window["boards_report_file"].update("")
# pools tab
if event == "pools_all":