Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created August 24, 2020 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/94e6250d8192fbc7866ba0c679cdf826 to your computer and use it in GitHub Desktop.
Save amankharwal/94e6250d8192fbc7866ba0c679cdf826 to your computer and use it in GitHub Desktop.
import os
from tkinter import *
from tkinter import messagebox
Window=Tk()
Window.geometry("1920x1080")
Window.title("MAIL OTP")
def verify():
cmd=str(a.get())
temp='python sendmail.py'+' '+cmd
os.system(temp)
label1=Label(Window,text="One Time Password",relief="solid",font=("arial",26,"bold"),fg='blue').pack(fill=BOTH)
a=StringVar()
Re=Label(Window,text="EMAIL ID",font=("arial",22,"bold")).place(x=0,y=50)
w=Entry(Window,width=20,validate="key",textvariable=a)
w.place(x=900,y=50)
log = Button(Window, text="Proceed",relief="raised", bg='yellow', font=("arial", 26, "bold"), fg='black',command=verify).place(x=900,y=150)
Window.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment