Basic Search and Autofill - Python Tkinter GUI Tutorial #162

preview_player
Показать описание
In this video we'll create a simple search and autofill function with Tkinter and Python.

We'll create an entry box and a list box full of pizza toppings. As you start to type a topping into the entry box, the listbox will automatically update to show toppings that look like what you're typing.

This is a very basic search function and the beginnings of an auto complete or autofill function that you can play with.

** NOTE - TYPO IN THE CODE
should be
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

I found this guy 3 days ago, AND HE'S SUCH A GOOD

hisanimations
Автор

My man, I just want to give you a bug hug for making these amazing tutorials for free, I will buy everything as soon as I have money

sammflynn
Автор

I have learned so much from your videos! You are always putting so much efford to make these tutorials! Keep it up <3

michakilanowski
Автор

Mais uma vez, Parabéns. Sempre que preciso de ajuda, suas aulas sempre me mostra um caminho. top.

ricardogalvao
Автор

Hit that like button Python Fans! Great tutorial. Feed the Algorithm!

RyanDanielG
Автор

If you want your listbox to update only by the letters from the beginnig of the word, change your code in that fucntion this way:
typed= my_entry.get()
length_of_typed=len(typed)
if typed == '':
data = toppings
else:
data=[]
for item in toppings:
if typed.lower() in
data.append(item)
update(data)

borispasynkov
Автор

Thank you so much for making these videos, they're extremely helpful to me.

jackryan
Автор

your videos help me a lot as a solution to my problems

drawartwithfun
Автор

Great explanation, I am going to add this feature to my text editor.
Thank you!

hajimenagao
Автор

Thank you
My son and I like you so much, you're the best

hossienhassanhamow
Автор

Great tutorial. You explain really well 👏

superporff
Автор

If anyone wants the searching to be exact e.g. if you don't want 'Ham' pops up when type M, do this in the for loop:

if
data.append(item)

david
Автор

Hi John, thank you for the video. New to coding, wondering if you have any tips for building more advanced search functionality into this example to make it more comprehensive/user friendly. Thanks!

brockmcpherson
Автор

Hey, great videos! I'm learning a lot! But please, put the typo error higher up in the description. I spent shitloads of time trying to debug it on my app until I went back to this video, RIP.

DauphinetB
Автор

Me before finding this guy: Tkinter awfully sucks
Me after finding this guy: Woah tkinter is actually a good GUI library

sharkgamer
Автор

I am getting "TclError: no event type or button # or keysym" error while running code

UshaDarja
Автор

I just wanted to create a "CTRL+F" or "INPUT TEXTBOX" to be able to search text inside the tkinter GUI.
Like when you are on a browser and hit "CTRL+F" to quickly find the text you need, I would need to do the same, but on the GUI.
How would be possible to do that?

axel
Автор

very good videos you made sir add more so i want become master in tkinter python

sachinyadav-usfe
Автор

For example I have Table with Headers. And I want make headers work as menubuttons but with ability to search like in this video. So once I enter 'C' all data under that header is removed and appear the one only that starts on 'C'. What the best practice to accomplish it? I would like to add something like that on each header so I could do filter by any Column. At the same time list of data might be exceed window, so I need scrollbar there.

maxwellhawk