Tkinter Method in Button Flash()
Button flash several times between active and normal colors. When button is disabled it Ignored.
******Your code Below*****
from tkinter import *
root = Tk()
root.title("Button Flash")
root.geometry("800x350+450+86")
def my_upd():
if btn2["text"]=="Click me to agree":
btn2.flash()
else:
btn2["text"]="GO TO btn2 text and put down"
btn_submit= Button(root, text="SUBMIT",bd=6, font=("times",20,"bold"), command=my_upd)
btn_submit.grid(row=0, column=1, padx=10, pady=60)
btn2=Button(root, text="Click me to agree", bd=6,font=("times",20,"bold"), width=30,
activebackground="red",activeforeground="yellow",command=my_upd)
btn2.grid(row=0, column=2, padx=5,pady=60)
root.mainloop()
********End Code**********
Write Down Code Your Code Editor. To show Your Output. If Use Pycharm Press Shift+F10 and Show Your Output.
Enjoy..............
If You Want To Learn More Plz Visit www.newpost24.com
If You Find Specific link plz Follow This Page.
Very Useful
ردحذفإرسال تعليق