Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created August 24, 2020 16:04
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/5bc671a6cad345840fad724994766d8a to your computer and use it in GitHub Desktop.
Save amankharwal/5bc671a6cad345840fad724994766d8a to your computer and use it in GitHub Desktop.
import sys
from tkinter import messagebox
from tkinter import *
import time
b=sys.argv[1]
f1=open("otp.txt","r")
b1=f1.read()
f1.close()
#print(b,b1)
if b==b1:
f = open("status.txt", "w")
f.write("success")
f.close()
Window = Tk()
Window.geometry("800x600")
Window.title("Success")
messagebox.showinfo("Congratulations", "Your OTP was verified Successfully!!")
Window.destroy()
Window.mainloop()
else:
f = open("status.txt", "w")
f.write("failure")
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment