fixed formatting issues

This commit is contained in:
UpstreamData
2022-05-26 13:23:32 -06:00
parent 942f2a1c8d
commit c35b30e949
78 changed files with 177 additions and 173 deletions

View File

@@ -8,7 +8,10 @@ from matplotlib.figure import Figure
import numpy as np
from reportlab.lib import colors
from reportlab.lib.pagesizes import letter, inch
from reportlab.lib.styles import ParagraphStyle, TA_CENTER
from reportlab.lib.styles import (
ParagraphStyle,
TA_CENTER, # noqa - not declared in __all__
)
from reportlab.lib.utils import ImageReader
from reportlab.platypus import (
SimpleDocTemplate,

View File

@@ -37,10 +37,8 @@ for table in TABLE_HEADERS:
async def btn_all():
table = "scan_table"
window[table].update(
select_rows=([row for row in range(len(window[table].Values))])
)
tbl = "scan_table"
window[tbl].update(select_rows=([row for row in range(len(window[tbl].Values))]))
async def btn_scan(scan_ip: str):

View File

@@ -47,7 +47,7 @@ def _table_copy(table):
for item in value:
values.append(str(item).strip())
_copy_values.append(values)
except Exception as E:
except Exception:
pass
copy_values = []
@@ -88,7 +88,7 @@ async def ui():
bind_ctrl_a(key)
# create images used in the table, they will not show if not saved here
tk_imgs = TkImages()
tk_imgs = TkImages() # noqa - need to save this in memory to hold images
# left justify hostnames
window["scan_table"].Widget.column(2, anchor=tk.W)