I wanted to insert a menubar but I noticed that it doesn't appear, I also asked chatGPT but the data code didn't work anyway, I'm on a mac so I thought there was some problem since there are differences between menubars with window but I couldn't find anything about.
from tkinter import *
from tkinter import ttk
root = Tk(className = "Menubar")
root.geometry ("500x500")
menubar = Menu(root)
root.config(menu=menubar)
file_menu = Menu(menubar)
menubar.add_cascade(label="file",menu=file_menu)
root.mainloop ()