0

filemenu.add_command(lable="Standard") self.tk.call((self._w, 'add', itemsType)+_tkinter.TclError: unknown option "-lable"

What is the mean that? https://code.sololearn.com/c0A6A15A2a5A/?ref=app

3rd Apr 2021, 10:41 AM
Gayatri Dunakhe
Gayatri Dunakhe - avatar
4 Réponses
+ 1
Yes there is a mistake of label correct it another error showing menu attributes has no object check your line 15 ,16 from tkinter import* import math import parser import tkinter.messagebox root = Tk() root.title("Scientific Calculator") root.configure(background = "powder blue") root.resizable(width = False, height = False) root.("480x568+0+0") calc = Frame(root) calc.grid() menubar = Menu(calc) filemenu = Menu(menubar, tearoff = 0) menubar.add_cascade(label = "File", menu = filemenu) filemenu.add_command(label = "Standard") filemenu.add_command(label = "Scientific") filemenu.add_spearator() filemenu.add_command(label = "Exit") root.config(menu = menubar) root.mainloop()
3rd Apr 2021, 12:44 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
It's 'label', not 'lable' in filemenu.add_command(lable=.....)
3rd Apr 2021, 11:43 AM
XXX
XXX - avatar
0
post your code apart from your question so that it will be readable!
3rd Apr 2021, 10:49 AM
iTech
iTech - avatar
0
Ok
3rd Apr 2021, 10:50 AM
Gayatri Dunakhe
Gayatri Dunakhe - avatar