You can simply use lambda like this:

self.testButton = Button(self, text=" test", command=lambda:[funct1(),funct2()])
Answer from pradepghr on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ how-to-bind-multiple-commands-to-tkinter-button
How to Bind Multiple Commands to Tkinter Button? - GeeksforGeeks
July 23, 2025 - Method 2: By creating our own generic function that will call functions for us. ... # Import tkinter and Button Widget from tkinter import Tk from tkinter.ttk import Button # funcs parameter will have the reference # of all the functions that are passed as arguments i.e "fun1" and "fun2" def combine_funcs(*funcs): # this function will call the passed functions # with the arguments that are passed to the functions def inner_combined_func(*args, **kwargs): for f in funcs: # Calling functions with arguments, if any f(*args, **kwargs) # returning the reference of inner_combined_func # this referen
Discussions

python - tkinter call two functions - Stack Overflow
Is it possible to make it so that a Tkinter button calls two function? some thing like this maybe?: from Tkinter import * admin = Tk() def o(): print '1' def t(): print '2' button = But... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Python Tkinter Multiple Commands - Stack Overflow
I'm currently working on a GUI using Tkinter and Python. One of the windows I create has two buttons on it: one to restart a separate python script and the other one to shut down the whole program. More on stackoverflow.com
๐ŸŒ stackoverflow.com
April 2, 2016
python 3.x - multiple commands for a tkinter button - Stack Overflow
If I put GUI_Interface as the first command for close_func(), then it really does not go back to the 2nd step and never closes the existing.py file. And if I place GUI_Interface in the end, it just closes the existing one and nevr opens the function of the new .py file ... Just create a custom function that calls your functions. ... from tkinter import Tk, Button ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
python tkinter, how run two commands on click on one button? - Stack Overflow
How to run two commands on click on one button ? Example: def commend1(): print "hi" def commend2(): print "hello" #TKinter button = Button(root, commend= ?) I want them t... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ a single button that fires two commands in tkinter.
r/learnpython on Reddit: A single button that fires two commands in tkinter.
January 28, 2018 -

Hi, i've already made a little program that presses (Ctrl+S) shortcut automatically every x seconds, and i want to add a timer to it, so i need to put two functions in one button, here is a smaller and simpler code just to get the idea:

from tkinter import *

def hello():
    print("HELLO")

def bye():
    print("BYE")

root = Tk()

Button(root, width=7, text='CLICK ME', 
command=hello).pack()

root.mainloop()
๐ŸŒ
Delft Stack
delftstack.com โ€บ home โ€บ howto โ€บ python tkinter โ€บ how to bind multiple commands to tkinter button
How to Bind Multiple Commands to Tkinter Button | Delft Stack
February 2, 2024 - We could use lambda to combine multiple commands as, ... This lambda function will execute funcA, funcB, and funcC one by one. try: import Tkinter as tk except: import tkinter as tk class Test: def __init__(self): self.root = tk.Tk() ...
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ article โ€บ running-multiple-commands-when-a-button-is-pressed-in-tkinter
Running multiple commands when a button is pressed in Tkinter
from tkinter import * win = Tk() win.geometry("400x300") win.title("Wrapper Function Example") def change_color(): win.config(bg='lightblue') def update_text(): label.config(text="Button Clicked!", fg='red') def play_sound(): print("Beep! Sound played") # Wrapper function to execute multiple commands def execute_multiple_commands(): change_color() update_text() play_sound() label = Label(win, text="Click the button below", font=('Arial', 12)) label.pack(pady=20) # Button using wrapper function button = Button(win, text="Multi-Action Button", command=execute_multiple_commands) button.pack(pady=10) win.mainloop()
๐ŸŒ
YouTube
youtube.com โ€บ sourcegpt
python tkinter button multiple commands - YouTube
Download this code from https://codegive.com Title: Python Tkinter Button with Multiple Commands TutorialIntroduction:Tkinter is a popular GUI (Graphical Use...
Published ย  December 23, 2023
Views ย  405
Find elsewhere
๐ŸŒ
DaniWeb
daniweb.com โ€บ programming โ€บ software-development โ€บ threads โ€บ 63232 โ€บ one-button-multiple-commands
python - One Button: Multiple Commands [SOLVED] | DaniWeb
November 30, 2006 - def _play(): try: show_image2() finally: show_image3() btn1.config(command=_play) Prefer returning promptly from callbacks; long-running image processing belongs in threads or via chunked after(...) calls. See Tkinter reference: tkinter. I'm confused. Couldn't you do this: btn1 = Button(root, text="Play", command=show_images)
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ create-multiple-buttons-with-different-command-function-in-tkinter
Create multiple buttons with "different" command function in Tkinter
In this example, we will define some buttons that will have different commands or functionalities. #Import the required Libraries from tkinter import * from tkinter import ttk #Create an instance of Tkinter frame win = Tk() #Set the geometry of the Tkinter frame win.geometry("750x250") #Define a function to update the entry widget def entry_update(text): entry.delete(0,END) entry.insert(0,text) #Create an Entry Widget entry= Entry(win, width= 30, bg= "white") entry.pack(pady=10) #Create Multiple Buttons with different commands button_dict={} option= ["Python", "Java", "Go", "C++"] for i in option: def func(x=i): return entry_update(x) button_dict[i]=ttk.Button(win, text=i, command= func) button_dict[i].pack() win.mainloop()
๐ŸŒ
YouTube
youtube.com โ€บ emenike victor
multiple command with one button tkinter python - YouTube
tkinter two funtions on one button
Published ย  April 26, 2022
Views ย  1K
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 67080902 โ€บ multiple-commands-for-a-tkinter-button
python 3.x - multiple commands for a tkinter button - Stack Overflow
from tkinter import Tk, Button def func(): print('hello') root.destroy() print('hi') root = Tk() Button(root, text='Press', command=func).pack() root.mainloop()
๐ŸŒ
DaniWeb
daniweb.com โ€บ programming โ€บ software-development โ€บ threads โ€บ 70644 โ€บ tkinter-button-command
python - Tkinter Button Command [SOLVED] | DaniWeb
March 20, 2007 - # giving a Tkinter Button command two (or multiple) functions to run import Tkinter as tk def do_two(s, f1, f2): """run 2 functions f1 and f2""" f1(s) # after 2 sec run function f2 root.after(2000, f2) root = tk.Tk() root.title('click me') s ...
๐ŸŒ
Python Tutorial
pythontutorial.net โ€บ home โ€บ tkinter tutorial โ€บ tkinter button
Tkinter Button - Python Tutorial
April 3, 2025 - The buttonโ€™s command is assigned to a lambda expression that closes the main window. The following program shows how to display an image button. To practice this example, you need to download the following image first: Just right-click and save it into a folder that is accessible from the following program, e.g., assets folder: import tkinter as tk from tkinter import ttk from tkinter.messagebox import showinfo # main window root = tk.Tk() root.geometry('300x200') root.resizable(False, False) root.title('Image Button Demo') def handle_click(): showinfo( title='Information', message='Download button clicked!'
๐ŸŒ
IQCode
iqcode.com โ€บ code โ€บ other โ€บ how-to-give-two-commands-tkinter
how to give two commands tkinter Code Example
March 17, 2022 - all_commands = lamba: [func1(), func2()] button = Button(window, text="This is a button", command=all_commands)
๐ŸŒ
w3resource
w3resource.com โ€บ python-exercises โ€บ tkinter โ€บ python-tkinter-widgets-exercise-3.php
Python tkinter widgets: Create two buttons exit and hello using tkinter module
August 25, 2025 - import tkinter as tk def write_text(): print("Tkinter is easy to create GUI!") parent = tk.Tk() frame = tk.Frame(parent) frame.pack() text_disp= tk.Button(frame, text="Hello", command=write_text ) text_disp.pack(side=tk.LEFT) exit_button = tk.Button(frame, text="Exit", fg="green", command=quit) exit_button.pack(side=tk.RIGHT) parent.mainloop()
๐ŸŒ
Medium
bhaveshsingh0124.medium.com โ€บ multi-threading-on-python-tkinter-button-f0d9f759ad3e
Multi-threading in Python Tkinter Button | by Bhavesh Singh Bisht | Medium
August 16, 2020 - I encountered an issue, where i wanted to attach two commands/functions to a Tkinter button. One function was designed to train a machine learning model and other was a Determinate Progress Bar.
๐ŸŒ
CopyProgramming
copyprogramming.com โ€บ howto โ€บ how-to-bind-multiple-commands-to-tkinter-button
Tkinter: Tkinter Button: Binding Multiple Commands
April 27, 2023 - You can't. You will have to make a 3rd function that calls the two you want, and give that 3rd function to the Button command. def on_click (): do_thing_1 () do_thing_2 () btn = Button (command=on_click) I highly recommend you stay away from lambda until you know how it works.