File Dialog Boxes With QFileDialog - PyQt5 GUI Thursdays #29

  Рет қаралды 32,597

Codemy.com

Codemy.com

Күн бұрын

In this video I'll show you how to get a file location using a File Dialog Box using the QFileDialog widget.
the QFileDialog widget makes it super easy to get the location of anyfilename quickly and easily.
It returns a tuple with two items, and then we can just grab the zero'ith item of the tuple to get the file location.
#pyqt5 #codemy #JohnElder
Timecodes
0:00​​ - Introduction
0:47 - Create GUI With PyQT5 Designer
1:56 - Import Widgets To Python File
3:15 - Click The Button Function
4:14 - Open FileDialog Box
6:52 - Output Filename To Screen
8:57 - Grab Filename From Tuple
9:51 - FileDialog Box Title
10:26 - Change Default Directory
11:30 - Conclusion

Пікірлер: 45
@Codemycom
@Codemycom 2 жыл бұрын
▶️ Watch Entire PyQt5 GUI Thursdays Playlist ✅ Subscribe To My KZbin Channel: bit.ly/3sHT8dc bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code: bit.ly/394NQ3R
@NiranjanDixit23
@NiranjanDixit23 2 жыл бұрын
Absolutely in love with tkinter and PyQt5 series! Love your enthusiasm and byte-sized tutorials! My projects demands more than what is easy with tkinter, so I moved to PyQt5! Learning from you! Thank you for all your effort. Keep it up!
@Codemycom
@Codemycom 2 жыл бұрын
Happy to hear it!
@pan0ramy_
@pan0ramy_ 2 жыл бұрын
been using a couple of these tutorials for a final year college project (i’m completely new to python & decided to use this project to learn the language), and they’ve been a massive help! super clear and to the point, thanks a bunch 😊
@Codemycom
@Codemycom 2 жыл бұрын
Glad to hear it!
@Tetianaoutdoors
@Tetianaoutdoors 4 ай бұрын
I subscribed and liked......Sooo more QT Thursdays yeah?
@some1stoleit
@some1stoleit Жыл бұрын
Cool, nice and easy to set up.
@Codemycom
@Codemycom Жыл бұрын
awesome!
@hayaletyolcu
@hayaletyolcu 2 жыл бұрын
that was so good...
@oualidouarem4334
@oualidouarem4334 Ай бұрын
You saved my day Bro. Thanks a lot !
@Codemycom
@Codemycom Ай бұрын
Happy to help
@ryanantonio4589
@ryanantonio4589 Жыл бұрын
Very good. Greetings from Brazil!
@Codemycom
@Codemycom Жыл бұрын
greetings!
@makat3_a3gabtny
@makat3_a3gabtny Жыл бұрын
Thank you , you are a professional programmer
@Codemycom
@Codemycom Жыл бұрын
Welcome
@rspdno
@rspdno Жыл бұрын
thank`s a lot for that video!!!
@Codemycom
@Codemycom Жыл бұрын
Very Welcome!
@romans7319
@romans7319 Жыл бұрын
Thanks great tutorial
@Codemycom
@Codemycom Жыл бұрын
Welcome!
@hayaletyolcu
@hayaletyolcu 2 жыл бұрын
i have a question... i try to do different things for example to editing photos... i want to save the thing which i do to a path and i want to choose the file area with browse... i couldnt do that... only let me to choose a thing... not the file to save... can you help me about?
@vanshkumarjana8404
@vanshkumarjana8404 8 ай бұрын
How can I save the file or use the file on other Programe in the same file like it would be a variable and I can use it anywhere in the file
@danielesalafia2562
@danielesalafia2562 2 жыл бұрын
Hello my application distinguishes pdf from PDF, I have to create two instances, PDF FILE(*.pdf);;PDF FILE (*.PDF) or do you know any method to use only one PDF instance FILE????
@yusufneutron8824
@yusufneutron8824 2 жыл бұрын
thanks
@Codemycom
@Codemycom 2 жыл бұрын
welcome
@mariamkhanam4037
@mariamkhanam4037 2 жыл бұрын
Bro, this 'getopenfilename' is for files. But what if I ask folder location?? What class name will that? Like in tkinter : 'askdirectory'
@adamfatyga7977
@adamfatyga7977 Жыл бұрын
QFileDialog.getExistingDirectory
@cmfanz
@cmfanz Жыл бұрын
Is it possible to add a qfiledialog widget using qt designer? Are all widgets not available on qt designer?
@adamfatyga7977
@adamfatyga7977 Жыл бұрын
Why You need that? Its already from OS.
@sylvainboyer2310
@sylvainboyer2310 Жыл бұрын
I guess you can improve the code using : if fname[0], that will avoid to get errors in the console
@colfcraft1791
@colfcraft1791 Жыл бұрын
How I make that with input?
@adamfatyga7977
@adamfatyga7977 Жыл бұрын
And how to take ONLY file name, without path?
@user-oq3np1ud8q
@user-oq3np1ud8q 2 жыл бұрын
Hi! What about video about django on Wednesdays? Will you publish the new one on this week?
@Codemycom
@Codemycom 2 жыл бұрын
No Django this week.
@user-oq3np1ud8q
@user-oq3np1ud8q 2 жыл бұрын
@@Codemycom Sorry to hear this... Crossed fingers for next week!
@rahmatilloismoilov3323
@rahmatilloismoilov3323 2 жыл бұрын
Hi, John is it enough Pre-Intermediate English degree for learn programming?
@Codemycom
@Codemycom 2 жыл бұрын
sure
@erictamado1183
@erictamado1183 Жыл бұрын
why i have none attribute for 'clicked'?
@Codemycom
@Codemycom Жыл бұрын
what did you do differently from the video?
@michaelboateng4280
@michaelboateng4280 2 жыл бұрын
Not getting django this week???
@Codemycom
@Codemycom 2 жыл бұрын
No Django this week.
@nutchateangkool209
@nutchateangkool209 Жыл бұрын
Can I open PDF File?
@Codemycom
@Codemycom Жыл бұрын
sure, but it takes some work
@kanwaradnan4849
@kanwaradnan4849 2 жыл бұрын
😈first
@Codemycom
@Codemycom 2 жыл бұрын
Nice
@dorianmccarthy7602
@dorianmccarthy7602 Жыл бұрын
Downvote for the first second behavior.
Build An Image Viewer App - PyQt5 GUI Thursdays #30
9:00
Codemy.com
Рет қаралды 22 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 393 М.
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 11 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 11 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 2,9 МЛН
Stop, Intel’s Already Dead!
13:47
Linus Tech Tips
Рет қаралды 471 М.
7 Essential Command Line Tools (2022)
9:12
Tech Craft
Рет қаралды 205 М.
BASH scripting will change your life
14:18
NetworkChuck
Рет қаралды 1 МЛН
How To Load PYQT5 Designer UI File - PyQt5 GUI Thursdays #27
15:29
Creating Your Own Qt Applications...It's Easy!
15:27
DistroTube
Рет қаралды 36 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 389 М.
Browse Files Dialog with PyQt5 [use file explorer]
11:30
Code First with Hala
Рет қаралды 51 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 861 М.
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 11 МЛН