|
10 | 10 | from multiprocessing import Process, Pipe
|
11 | 11 | import PII_data_processor
|
12 | 12 | from PIL import ImageTk, Image
|
| 13 | +import webbrowser |
13 | 14 |
|
14 | 15 | intro_text = "This script is meant to assist in the detection of PII (personally identifiable information) and subsequent removal from a dataset."
|
15 | 16 | intro_text_p2 = "Ensuring the dataset is devoid of PII is ultimately still your responsibility. Be careful with potential identifiers, especially geographic, because they can sometimes be combined with other variables to become identifying."
|
@@ -126,13 +127,20 @@ def file_select():
|
126 | 127 | root.after(2000, next_steps(identified_pii, dataset, datap_functions_conn, datap_messages_conn, tkinter_functions_conn, tkinter_messages_conn))
|
127 | 128 |
|
128 | 129 | def about():
|
129 |
| - import webbrowser |
130 | 130 | webbrowser.open('https://github.com/PovertyAction/PII_detection/blob/master/README.md#pii_detection')
|
131 | 131 |
|
132 | 132 | def contact():
|
133 |
| - import webbrowser |
134 | 133 | webbrowser.open('https://github.com/PovertyAction/PII_detection/issues')
|
135 | 134 |
|
| 135 | +def methods(): |
| 136 | + webbrowser.open('https://github.com/PovertyAction/PII_detection/blob/master/README.md#pii_detection') |
| 137 | + |
| 138 | +def comparison(): |
| 139 | + webbrowser.open('https://github.com/PovertyAction/PII_detection/blob/master/README.md#pii_detection') |
| 140 | + |
| 141 | +def PII_field_names(): |
| 142 | + webbrowser.open('https://github.com/PovertyAction/PII_detection/blob/fa1325094ecdd085864a58374d9f687181ac09fd/PII_data_processor.py#L115') |
| 143 | + |
136 | 144 | def next_steps(identified_pii, dataset, datap_functions_conn, datap_messages_conn, tkinter_functions_conn, tkinter_messages_conn):
|
137 | 145 | ### Date Detection ###
|
138 | 146 | tkinter_display('in next steps')
|
@@ -187,7 +195,14 @@ def restart_program():
|
187 | 195 | # create more pulldown menus
|
188 | 196 | helpmenu = Menu(menubar, tearoff=0)
|
189 | 197 | helpmenu.add_command(label="About", command=about)
|
| 198 | + helpmenu.add_command(label="- Detection Methods", command=methods) |
| 199 | + helpmenu.add_command(label="- Comparison with Other Scripts", command=comparison) |
| 200 | + helpmenu.add_command(label="- PII Field Names", command=PII_field_names) |
| 201 | + helpmenu.add_command(label="- Data Security", command=PII_field_names) |
| 202 | + helpmenu.add_separator() |
190 | 203 | helpmenu.add_command(label="File Issue on GitHub", command=contact)
|
| 204 | + helpmenu.add_separator() |
| 205 | + helpmenu.add_command(label="Contribute", command=contact) |
191 | 206 | menubar.add_cascade(label="Help", menu=helpmenu)
|
192 | 207 |
|
193 | 208 | root.configure(background='light gray', menu=menubar)
|
|
0 commit comments