-
-
Save amankharwal/5bc671a6cad345840fad724994766d8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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