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

2018-08-07 Thread Alan Gauld via Tutor
On 06/08/18 20:50, Ali M wrote: > If i delete this line "self.textbox.delete(1.0, tk.END)" in my > enter_meaning function the listbox items won't lower down to 1 item and i > just want 1 item to be shown after user searches the item in entrybox. So just display 1 item. What you are currently doing

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 it

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

2018-08-02 Thread Alan Gauld via Tutor
On 02/08/18 21:12, Ali M wrote: > I tried writing the search_word function and binded it to the button, but > it doesn't work, please help i'm still a beginner. > > def search_word(self, tag): > esperanto = self.listbox.selection_set(0) > results = self.cur.execute("SELECT Eng