fixed formatting issues
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user