removed todos to readme

This commit is contained in:
Joost Agterhoek 2024-08-09 10:17:47 +02:00
parent 4089c07be5
commit 8d0bb15b63

View File

@ -3,7 +3,7 @@
# importing tkinter
import tkinter as tk
from generic import sanitize, type_hosts_listed, type_hosts_organized, ip_lookup, domain_lookup, spf_dmarc
from ..generic import sanitize, type_hosts_listed, type_hosts_organized, ip_lookup, domain_lookup, spf_dmarc
# function to run on pressing
# 'ENTER' key from keyboard.
@ -59,10 +59,8 @@ root.columnconfigure(2, weight=1)
root.columnconfigure(3, weight=1)
#Listing stuff
# Gotta try out: https://www.pythontutorial.net/tkinter/tkinter-listbox/
# creating widgets
# try to use grid instead of pack: https://www.geeksforgeeks.org/python-grid-method-in-tkinter/
entry = tk.Entry(root, text="Put in IP addresses, URLs, domains, email addresses")
textbox = tk.Text(root, height=8)
# textbox.insert('1.0', test)
@ -91,10 +89,7 @@ email_listbox.grid(column=2, row=5, columnspan=2, sticky='nsew')
# textbox.grid(column=1, row=3)
#Trying out buttons
# Try to create a copy-paste button: https://www.delftstack.com/howto/python/python-copy-to-clipboard/#copy-text-to-clipboard-in-python-using-the-tkinter-module
test_button = tk.Button(root, text="comma-separate and add quotes", command=test_button_function)
# test_button.grid(column=2, row=5, columnspan=2)
# Binding ENTER key to function
entry.bind("<Return>", key_handler_function)
@ -102,7 +97,3 @@ entry.bind("<Return>", key_handler_function)
# run the application
root.mainloop()
# Instead of a label showing the output, use a text box: https://pythonguides.com/python-tkinter-text-box/ -> DONE
# Implement a copy paste button: https://stackoverflow.com/a/71357987
# Try out ways to sanitize input, f.e. extract email addresses like in Cyberchef: https://github.com/gchq/CyberChef/blob/master/src/core/operations/ExtractEmailAddresses.mjs
# Another simpler way would be to first account for special characters, which are not allowed in email addresses: https://stackoverflow.com/questions/2049502/what-characters-are-allowed-in-an-email-address