📜  python make button 执行多个命令 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:37.542000             🧑  作者: Mango

代码示例1
# Make a button do more than one command
def funct1():
  print("function 1")

def funct2():
  print("function 2")

Button(root, text=" test", command=lambda:[funct1(),funct2()])