Esempio n. 1
0
    search_ok = Button(search_root, text='Search', command=trySearch)
    search_ok.grid(row=4, column=5, padx=5, pady=5)

    search_root.mainloop()


root = Tk()
#root.resizable(0,0)
root.geometry("+700+300")
familyLabel = Label(root, text="Families:")
familyLabel.grid(row=2, padx=5, sticky=W + S)
root.minsize(width=690, height=420)
root.maxsize(width=690, height=420)

# All database access operations will be done by this object
dbAccess = DatabaseAccess()

id_List = dbAccess.getIDList()

scrollbar = Scrollbar(root)
scrollbar.grid(row=3, column=2, rowspan=3, sticky=N + S)
#scrollbar.config(height = 16)

listbox = Listbox(root, yscrollcommand=scrollbar.set)
listbox.config(width=16, height=20)
listbox.grid(row=3, column=0, rowspan=3, padx=5)

root.grid_rowconfigure(1, minsize=10)
root.grid_columnconfigure(4, minsize=50)
#root.grid_rowconfigure(10, minsize=100)