I found the solution myself in Tcl manpages :
Use the entryconfigure() method, for example, which changes the value after it is clicked:
The first parameter 1 should be the index of the element you want to change, starting with 1.
from tkinter import * root = Tk() menu_bar = Menu(root) def clicked(menu): menu.entryconfigure(1, label="Clicked!") file_menu = Menu(menu_bar, tearoff=False) file_menu.add_command(label="An example item", command=lambda: clicked(file_menu)) menu_bar.add_cascade(label="File", menu=file_menu) root.config(menu=menu_bar) root.mainloop()
source share