str' object has no attribute 'get' attribute : How can I solve it...
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\Mani\AppData\Local\Programs\Python\Python36-32\lib\tkinter\__init__.py", line 1699, in __call__
    return self.func(*args)
  File "F:\Monu\Work\python\PROJECT\New folder\LMS.py", line 262, in onDoubalclick
    cursor.execute("SELECT * FROM `TRANSECTION` WHERE Book_Id=?",(val1.get(),))
AttributeError: 'str' object has no attribute 'get'

I already convert it in string or integer but not working

def onDoubalclick(event):
    test=treeview.item(treeview.selection())
    print(test)
    items=treeview.selection()[0]
    val1=str(treeview.item(items)['values'][0])
    print(type(val1))    
    popsearch()
    DataBase()
    cursor.execute("SELECT * FROM `TRANSECTION` WHERE Book_Id=?",(val1.get(),))
    info=cursor.fetchall()
    for ROW1 in info:
        print(rows)
        treeview2.insert("",END,value=ROW1)

I want to get a value that stores in val1 and search that value in the database

