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
4 Respostas
+ 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()
+ 2
It's 'label', not 'lable' in
filemenu.add_command(lable=.....)
0
post your code apart from your question so that it will be readable!
0
Ok