# Changing the colour of Tkinter Menu Bar in Python # Import the library tkinterfrom tkinter import *  # Create a GUI appapp = Tk()  # Set the title and geometry to your appapp.title("Geeks For Geeks")app.geometry("800x500")  # Create menubar by setting the colormenubar = Menu(app, background='blue', fg='white')  # Declare file and edit for showing in menubarfile = Menu(menubar, tearoff=False, background='yellow')edit = Menu(menubar, tearoff=False, background='pink')  # Add commands in in file menufile.add_command(label="New")file.add_command(label="Exit", command=app.quit)  # Add commands in edit menuedit.add_command(label="Cut")edit.add_command(label="Copy")edit.add_command(label="Paste")  # Display the file and edit declared in previous stepmenubar.add_cascade(label="File", menu=file)menubar.add_cascade(label="Edit", menu=edit)  # Displaying of menubar in the appapp.config(menu=menubar)  # Make infinite loop for displaying app on screenapp.mainloop()