Make a new function that calls both:
def o_and_t():
o()
t()
button = Button(admin, text='Press', command=o_and_t)
Alternatively, you can use this fun little function:
def sequence(*functions):
def func(*args, **kwargs):
return_value = None
for function in functions:
return_value = function(*args, **kwargs)
return return_value
return func
Then you can use it like this:
button = Button(admin, text='Press', command=sequence(o, t))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…