Open Files Dialog Box - Python Tkinter GUI Tutorial #15

preview_player
Показать описание
How to use Open Files Dialog Box in Tkinter and Python. In this video I'll show you how to open files with the filedialog box:

In this series I'll show you how to create graphical user interfaces for Python with Tkinter.

✅ Watch The Other Videos In This Python Playlist:

▶️ See More At:

✅ Join My Facebook Group:

✅ Subscribe To My YouTube Channel:

Take $22 off with coupon code: youtube
Рекомендации по теме
Комментарии
Автор

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

Codemycom
Автор

Thanks for leaving errors in your videos so we can see you calmly identify and fix them. Great to see some humility but most importantly teaching that errors are just part of development work and can be easily fixed.

tristangwithian
Автор

You have the best channel on the internet. The way you teach is unprecedented the scope of these projects make students want to learn the boring theory in textbooks because its being applied in real time w/ real world application. Thank you.

Omega-lltx
Автор

That photo with your dog is literally the brand image of the playlist, gotta love how cute your dog is!!

petitfrapo
Автор

Thanks John! I've been learning A LOT from your videos from scratch! I'm not a programmer, just curious and trying to apply something to my job! Thanks for your dedication!!
I'll put an issue here that I had to troubleshoot, in case it happens to another one. When using this, I had this error: codecs.charmap_decode(input, self.errors, decoding_table)[0] and something about an encoding error - I finally solved it by putting a second code line (right after getting root.filename), and put: root.filename = root.filename.name - then it just took the location, but not the encoding option
Thanks again!

MRantu
Автор

This was the most useful video yet. Great content John!

agrimpuriya
Автор

I had no idea about filedialogs before this video, WOW. I have just been manually iterating through folders this entire time :( best video by far.

dylancampbell
Автор

I am in love with your tutorials. If I were tutorial I would ask to marry your tutorials 😊

muhammetgylyjov
Автор

You are a genius get confidence from your you from India.

SammarpanDasguptaOfficial
Автор

great tutorial! One question, if i want to open a csv file, how can i keep it in a variable so i can use it in different functions?

ellenjunker
Автор

What about trying to return a list of files in a directory location?

fernandohood
Автор

I'm at the 6:00 mark, the all files "*.*" doesn't seem to work as the option is faded out in the popup. It only lets me interact with folder and files types I have explicitly typed in to include

PersonSnowboarding
Автор

sir, your channel is really underrated compared to your content. Your channel should have a more than a million subs

tonystark
Автор

Sir I added a file dialogue on a top-level but it does not show on the top but file dialogue shows under the top-level how can I fix this sir

Yash-ll
Автор

Thanks for this tutorial, I have just one question:
I with there was a way to remove the "All Files" portion of the code and still have it run so that you can restrict what type of files a user is allowed to select.
If there is a solution to this, please tell me, Thanks!

AcTheMace
Автор

Brilliant again.
Nothing shocks me now

yashdeore
Автор

Thanks for the great videos! Would be very grateful if you could answer a quick question?

What is the reason for assigning the file path string to 'root.filename'? From what I understand, this creates a new attribute called 'filename' for the 'root' object. What is the advantage of doing this instead of just assigning it to a normal variable (ie. just 'filename')?

Refnom
Автор

Excellent...! pls can this be done using grid() method ?

funnyclips
Автор

I dont know if you willl read this but anyways
why the variable that receives the return of filedialog.... is root.file name?
i dont get it, why cant i use any other name for it?
Thanks for your attention

gustavooliveira-mcnb
Автор

Perfect I need this one for my app! Thanks again 4 hours in lol

TheGeneticHouse