I have code that has a tkinter ( GUI ) button in it. when you press the button , for example , the press() function that I declared with a def block runs. i want to know how to check if a function has been run and use it in a if block. example:
def press()
print("hello world")
press()
while True() :
if press() has been runned (?) :
print("printed")
can you help me with this? thanks.