added the ability to copy a list of IP addresses directly from the table.

This commit is contained in:
UpstreamData
2022-01-06 13:15:08 -07:00
parent 5d66c539d4
commit 3ecc27b3f9
3 changed files with 20 additions and 1 deletions

View File

@@ -3,6 +3,22 @@ import re
from cfg_util.layout import window
import pyperclip
def copy_from_table(table):
print("copy")
selection = table.selection()
copy_values = []
for each in selection:
try:
value = table.item(each)["values"][0]
copy_values.append(str(value))
except:
pass
copy_string = "\n".join(copy_values)
pyperclip.copy(copy_string)
async def update_ui_with_data(key, message, append=False):
if append: