__author__ = 'deadmarshal' from tkinter import * from tkinter import ttk import sqlite3 as sqlite import sys # Gui root = Tk() root.title("Esperanto Dictionary") entry = ttk.Entry(root, width = 65) entry.grid(row=0 , column = 0) entry.insert(0, 'Type here to search') root.minsize(height=60, width=100) # Listbox tList = Listbox(root) s = Scrollbar(root, orient = VERTICAL) tList.configure(yscrollcommand = s.set) # Button but = Button(root, text = 'Search', foreground = 'Blue') but.grid(row = 0, column= 1) # Menu def Quit(): root.quit() menubar = Menu(root) menubar.add_command(label = 'Quit', command = Quit) root.config(menu = menubar) # SQLite Connect def insert_data(self): db = sqlite.connect('C:\\Users\\deadmarshal\\Desktop\\test.db') cur = db.cursor() cur.execute('Select * from words') tList.insert(END, self) root.mainloop()