Re: [Tutor] Getting current listbox item index and bind it to button (Tkinter)

2018-08-04 Thread Alan Gauld via Tutor
On 04/08/18 09:07, Ali M wrote: > I have taken the delete statement out of the for loop, but still nothing > happens when i click the button. You never assign the search_word function to a widget either via the command option or via a bind statement. If you don't bind the function to a widget

[Tutor] Getting current listbox item index and bind it to button (Tkinter)

2018-08-04 Thread Ali M
I have taken the delete statement out of the for loop, but still nothing happens when i click the button. i want that button to take the current list item index and do what the curselection does (which is printing the result in text widget). import sqlite3 as sqlite import tkinter as tk from