Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python make button do more than one command

# 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()])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #button #command
ADD COMMENT
Topic
Name
5+7 =