Hey so i have a database that i need to connect to my search box. Database is made with SQLite3.
from tkinter import *
root = Tk ()
topframe = Frame(root)
entry = Entry(topframe)
entry.pack()
Tools = ['Powerdrill', 'Chainsaw', 'Oscillating Multifunction Tool', 'Jigsaw', 'Angle Grinder']
def search():
name_of_tool = entry.get()
entry_value = entry.get()
answer_value = entry
print
button = Button(topframe, text="search")
button.pack()
topframe.pack(side = TOP)
bottomframe = Frame(root)
scroll = Scrollbar(bottomframe)
scroll.pack(side=RIGHT, fill=Y)
answer = Text(bottomframe, width=30, height=10, yscrollcommand = scroll.set)
answer.pack()
scroll.config(command=answer.yview)
bottomframe.pack()
root.mainloop()
This is the code for the searchbox that i need to be connected to database
from tkinter import *
root = Tk ()
topframe = Frame(root)
entry = Entry(topframe)
entry.pack()
Tools = ['Powerdrill', 'Chainsaw', 'Oscillating Multifunction Tool', 'Jigsaw', 'Angle Grinder']
def search():
name_of_tool = entry.get()
entry_value = entry.get()
answer_value = entry
button = Button(topframe, text="search")
button.pack()
topframe.pack(side = TOP)
bottomframe = Frame(root)
scroll = Scrollbar(bottomframe)
scroll.pack(side=RIGHT, fill=Y)
answer = Text(bottomframe, width=30, height=10, yscrollcommand = scroll.set)
answer.pack()
scroll.config(command=answer.yview)
bottomframe.pack()
root.mainloop()
This is the code for the searchbox that i need to be connected to database