Hi I'm trying to add a menubar to my Python Program. I was looking at a tutorial online, but it's for python3.4 and I'm running Python3.5.
The code (shown below) appears as commands in IDE, so I know I'm not typing the commands wrong, but when I run my program it doesn't load (so obviously I am :/ ). The icon appears in the sidebar on the Desktop, but no GUI actually appears, only the little popupmsg saying "Error 404", kinda ironic right?.
Once I comment out these lines, the program works fine.
Does anyone have any idea to what i going on?
Many Thanks in Advance! :)
menubar = tk.Menu(container)
filemenu = tk.Menu(menubar, tearoff=0)
filemenu.add_command(label="Save Settings", command=popupmsg("Error 404"))
filemenu.add_separator() #adds dividor
filemenu.add_command(label="Exit", command=quit)
filemenu.add_cascade(label="File", menu=filemenu)
tk.Tk.config(self, menu=menubar)