Hi,
I am using a button animation that changes the relief to sunken on button click and changes it back to raised after 200 milliseconds. The button animation does not work if the if condition is false. It is not clear to me how the two are related. The code can be seen below.
I appreciate the cooperation of forum members.
I am using a button animation that changes the relief to sunken on button click and changes it back to raised after 200 milliseconds. The button animation does not work if the if condition is false. It is not clear to me how the two are related. The code can be seen below.
def aonclick(): guistyle.configure("SunkableButtonA.TButton", relief="sunken", state="active") a.after(200, lambda: guistyle.configure("SunkableButtonA.TButton", relief="raised", state="normal")) print(akeyvar.get()) try: #tweepy code if (condition!=true ): messagebox.showinfo(message="Please provide correct input.") return #tweepy code except tweepy.TweepError as e: messagebox.showinfo(message=e)Version information: python 3.4.3
I appreciate the cooperation of forum members.