fixed some bugs with sorting when refreshing data and added refreshing data

This commit is contained in:
UpstreamData
2022-05-06 14:55:58 -06:00
parent 3bc9287668
commit e324369fe0
7 changed files with 119 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
import PySimpleGUI as sg
from .imgs import WINDOW_ICON, LIGHT, FAULT_LIGHT
from .imgs import WINDOW_ICON
TABLE_HEADERS = {
"SCAN": [
@@ -84,6 +85,7 @@ async def update_prog_bar(count: int, max: int = None):
if not hasattr(bar, "maxlen"):
if not max:
max = 100
if max:
bar.maxlen = max
percent_done = 100 * (count / bar.maxlen)
window["progress_percent"].Update(f"{round(percent_done, 2)} %")