Create a GUI app with Tkinter - Step by Step Tutorial

preview_player
Показать описание
#gui #tkinter #python
In this tutorial, we'll build a PDF-extracting program that fetches text from a user-selected file.
We'll create a graphic interface with Tkinter, manipulate PDF files with PyPDF2 and present the logo of our app with Pillow/PIL.

🛑 You may need to adjust "filetype" tp "filetypes" in line 24 🛑:
file = askopenfile(parent=root, mode='rb', title="Choose a file", filetypes=[("Pdf file", "*.pdf")])

⭐ STARTER FILES:

⭐ PART 2 OF THIS PROJECT (much bigger font 😉):

-----------------------------------------------------
🖇️ MUCH NEWER TUTORIALS 🖇️
-----------------------------------------------------
⭐ Create GUI App with SQLite and Tkinter (Random Recipe Picker):
⭐ From Python App to Real Program (using Random Recipe Picker):

-------------------------------------------
⏰ Time Stamps ⏰
-------------------------------------------
00:00 - Intro
01:23 - Import modules
02:02 - Save as a Python file
02:30 - Run Python file in the terminal
03:43 - Create a Window/Root object with Tkinter
04:48 - Create a Tkinter Canvas Widget
06:14 - Tkinter Image Widget
08:35 - Add Text with a Tkinter Label Widget
10:10 - Discuss "Browse" Button Functionality
10:25 - Change the Text of a Button Widget
12:34 - Tkinter Widget Rowspan
12:57 - Stylize Button Widget
13:38 - Add Vertical Margins in Tkinter
14:18 - Attach Command Function to Button Widget
16:00 - Open Browse File Dialog
16:52 - Limit File Dialogue to Browse only for PDF files
17:48 - Read PDF file with PyPDF2
18:11 - Select a PDF page
18:25 - Extract Text from PDF file
19:36 - Create a Tkinter Text Widget
20:01 - Padding with Tkinter Widgets
20:12 - Insert Text into a Text Widget
21:08 - Justify Widget Text to the Center
22:35 - Test the App
22:54 - Thanks for Watching!
-------------------------------------------

Tkinter Documentation:

-------------------------------------------
🤝 Connect with me 🤝
-------------------------------------------
🔗 Github:
🔗 Discord:
🔗 LinkedIn:
🔗 Twitter:
🔗 Blog:
Рекомендации по теме
Комментарии
Автор

Finally someone who actually explains what the commands are doing as they write the code. Thanks.

slewins
Автор

You've got a knack for this. You bring enough personality to learning to keep it interesting, without distracting from the learning. Good job.

glockguy
Автор

That was EXCELLENT.
I actually just recently created a PDF text extractor, but it is just a terminal window that extracts the text and saves it to a text file, and I've been wanting to learn how to create a GUI for it, so your teachings here will help me make it even better. Thank you so much, and keep up the amazing work!

MosnoAlMoseeki
Автор

For real, this is game changing for me! I’m such a python and programming noob. I did a full walkthru with this video in vscode on my laptop step by step, and it works like a charm! Thank you so much! You are helping me learn!

ralphy
Автор

This is something I’ve been looking for a long time. Simple project wise tutorials. You are fantastic and thank you soo much for the video series. 💪🏽💪🏽💪🏽❤️❤️❤️

gbx
Автор

Thank you!, very straightforward. Exactly what I needed actually. I plan on using this ui implementation to manage massively moving or renaming files. Works like a charm!

nikluz
Автор

I've never watch a coding vedio so relaxed like this before. thanks!

danbrown
Автор

Appreciate the tutorial! Working through this right now; if any mac users have trouble getting the background color of their button to change, you can use highlightbackground= instead of bg=.

mattmovesmountains
Автор

Excellent video, clear and simple. That’s all I was looking for, thank you !

anthony_issa
Автор

By searching "Desktop GUI App with python", I found your tutorial. Nice work. Carry on with python stuff..

aazizskills
Автор

Explaining what each line of code does, is what makes you different from others. I just got my hands on python and want to build projects, this video really helps ❤️, thanks..

ImranKhan-ftns
Автор

Wow, you are an awesome lecturer. You gave me, as an newbee, an excellent insight how different things work together and what basic principles are in the backgroud. *well done*

sebastianzeidler
Автор

Ma’am that’s exactly what i’ve been looking for
By accident i saw u on Facebook
I’m lucky ❤️

bruuhgh
Автор

This is good timing! I've just started learning python because I've gotten a little bored with Java, c#, c++ etc.

richardikin
Автор

Thank you for your tutorials! Your knowledge, humour and sweet personalitty makes these videos very enjoyable to watch!

antoniss
Автор

@Python Simplified - I have to say, you're very good at explaining things. That's especially helpful for a subject like coding which can easily get confusing. Thank you!

jfarr
Автор

One of the highest quality tutorial I've ever seen. Amazing!

hugoalmeida
Автор

FYI - CD means "change directory" ... "Current directory" sounds similar and also fits with the letters, but is not the origin of the name of this command.

wolfganggosejacob
Автор

WOW! Qué manera tan perfecta de explicar además el acento lo hace aún más entretenido. Muchas gracias María!!

PanchitoRey
Автор

It is good to see that Tkinter is still generating some interest :) I just built a Tkinter GUI to accompany what would otherwise be a python API for pdf editing with for a web application.

pointsnorthgisuav