-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.pyw
35 lines (20 loc) · 1.11 KB
/
app.pyw
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
import customtkinter as ctk
import os
class App:
def __init__(self,user):
global win
win = ctk.CTk()
win.geometry("950x500")
win.resizable(False,False)
win.title("Instruction for noobs...")
win.config(bg="#121212")
label = ctk.CTkLabel(master=win,text=f"\n\nHi {user},\nWelcome to Keyboard Heatmap Generator.\nPress Start.,\nDo not close the terminl window.\nTo get your output press left-shift+esc.\nKeylogger would be closed after that,\nTo restart it run the app again and login\nHappy typing!!!\n",font=("Terminal" ,25, "bold"),text_color="lime green",bg_color="#121212")
label.pack()
button=ctk.CTkButton(master=win,height=60,width=120,text="START",bg_color="#121212",fg_color="lime green",text_color="black",font=("Terminal" ,25, "bold"),corner_radius=20,border_width=5,hover_color="#dddddd",border_color="#ffffff",command=self.go)
button.pack()
win.mainloop()
def go(self):
win.destroy()
os.system('py heatmap2.pyw')
if __name__=="__main__":
App("testing directly")