Error: AttributeError: '_tkinter.tkapp' object has no ...
stackoverflow.com › questions › 67708942May 26, 2021 · Error: AttributeError: '_tkinter.tkapp' object has no attribute 'insert'. from tkinter import * root = Tk () root.title ("Calculator") root.geometry ("400x480") root.configure (bg = 'gray') #commands for buttons def add_digit (digit): root.insert (0, digit) #buttons b7 = Button (root, text = '7', bd = 5, command = lambda : add_digit (7)).grid (row = 1, column = 0, stick = 'wens', padx = 5, pady = 5) b8 = Button (root, text = '8', bd = 5, command = lambda : add_digit (8)).grid (row = 1, ...