Tkinter python 3.7 AttributeError: 'Button' object has no attribute 'get'
问题 I'm writing an inventory database program. I'm a novice so I'm sure I have something wrong. def select_item(): #Create a Database or Connect to one conn = sqlite3.connect('inventory.db') #Create Cursor c = conn.cursor() a = id_select.get() c.execute("SELECT * FROM inventory WHERE oid = " + a) records = c.fetchall() for record in records: Item_editor.insert(0, record[0]) Quantity_editor.insert(0, record[1]) Asset_tag_editor.insert(0, record[2]) Notes_editor.insert(0, record[3]) #Entry Fields