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
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.
what i want to do is: when user searches in entrybox, the listbox items
lowers down to that
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
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 tkint
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
Hi, in my code i have the curselection in my enter_meaning function, and it
works well and prints the result which comes from db to the text widget.
When user searches in entrybox the list lowers down to 1 item, how can i
get the index of that item and bind it to the button so it will print the
res