I’m new to wxpython and I hope there is a simple one-line way to solve this:
I have defined some functions:
def function1:
do something
execute function2
def function2:
do something else
I want to know how I can call function2 (“execute function2”) without waiting for an event. Just call function2 in the end of function1.
Edit:
Finally this works:
def function1():
#do something
self.function2()
def function2(self):
#do something else
You just need to call it at the end:
Also, as you probably noticed, your function definitions are incorrect – you should place brackets at the end of the function name (when defining), even if it does not accept any arguments.