Create an advanced GUI app with PySimpleGUI (Full Tutorial)

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต

๐——๐—˜๐—ฆ๐—–๐—ฅ๐—œ๐—ฃ๐—ง๐—œ๐—ข๐—ก
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
In this tutorial, I'm going to walk you through the process of creating a GUI app with Python. I'll show you how to create an advanced Graphical User Interface complete with buttons, input boxes, user settings and a custom menu bar. I'll start with a simple GUI app that has just two buttons. Then, we'll create a more advanced GUI app to retrieve and save user settings. Finally, we will implement a custom menu bar and convert our code into a standalone executable file.
In the final application, you can convert a selected Excel sheet into a CSV file. Additionally, you could specify the separator & decimal value for the CSV file.

๐ŸŒ ๐—Ÿ๐—œ๐—ก๐—ž๐—ฆ:

To display all available themes, run the following code:
import PySimpleGUI as sg

โญ ๐—ง๐—œ๐— ๐—˜๐—ฆ๐—ง๐—”๐— ๐—ฃ๐—ฆ:
00:00 โ€“ Intro
00:50 โ€“ Basic example
04:22 โ€“ Add file types to the browse button
05:16 โ€“ Convert the Excel file to CSV
08:58 โ€“ Display the content of the Excel file
10:39 โ€“ Validate file paths
12:29 โ€“ Implement the settings function
16:38 โ€“ Create the settings window
19:55 โ€“ Add a custom menu bar
22:43 โ€“ Adjust the styling and clean up the code
24:39 โ€“ Bonus: Convert the GUI to an executable file
27:00 โ€“ Outro

๐—ง๐—ข๐—ข๐—Ÿ๐—ฆ ๐—”๐—ก๐—— ๐—ฅ๐—˜๐—ฆ๐—ข๐—จ๐—ฅ๐—–๐—˜๐—ฆ
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

๐—–๐—ข๐—ก๐—ก๐—˜๐—–๐—ง ๐—ช๐—œ๐—ง๐—› ๐— ๐—˜
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

โ˜• ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ?
If you want to support this channel, you can buy me a coffee here:
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

*What kind of programs are you planning to build with the PySimpleGUI library?* ๐Ÿค“

CodingIsFun
ะะฒั‚ะพั€

I want to say this is probably one of the best GUI tutorials I've experienced. I have struggled for years trying to build customer GUI in python and I just wanted to say thank you for making this easy to understand and purposeful. SUBSCRIBED!

cuongt
ะะฒั‚ะพั€

Excellent tutorial! One of the best Iโ€™ve seen on PySimpleGui. Perfect pace, topic coverage etc. subscribed!

arielspalter
ะะฒั‚ะพั€

Fantastic video. Easy to follow, fast and clear. Love the style.

myasaee
ะะฒั‚ะพั€

This was great timing. There was one thing in particular I couldn't figure out how to do and you helped me. Thank you :D

YammyBoh
ะะฒั‚ะพั€

You are one of the best code explainers on YouTube! Thanks a lot!

vdkmdww
ะะฒั‚ะพั€

Very in-depth, but concise at the same time!

florianroeseler
ะะฒั‚ะพั€

your videos are inspirational, much waited week by week. thanks for your dedication !

eduedu
ะะฒั‚ะพั€

I follow the examples on your channel with pleasure. The examples you give are great. Thanks.

erolsavas
ะะฒั‚ะพั€

Thanks for such a wonderful and comprehensive tutorial yet very precise. A great contribution for the community, Thanks again

adeelmunir
ะะฒั‚ะพั€

A useful and competent explanation, so I tried it and it turned out that everything works fine. Special thanks to the author for such useful content.

Kakzz
ะะฒั‚ะพั€

Nice. I would love to see more videos of PySimpleGUI

vajoh
ะะฒั‚ะพั€

Wanted a beginner gui python library because tkinter felt old looking. Safe to say, landed in the right place!

animatorslife
ะะฒั‚ะพั€

This channel is crazy... your tutorials and ideas are even more valuable than those paid courses on Udemy! Thanks for making these tutorials Sven ๐Ÿ˜‡

PinkPixelRabbit
ะะฒั‚ะพั€

Great Job ... Thank you. That was very helpful !

rzipper
ะะฒั‚ะพั€

Thank you so much for your video! Your tutorial is so easy to follow, thanks!

joedulis
ะะฒั‚ะพั€

Thank you so much for your excellent and unique explanation. Thank you from the bottom of my heart.

Sol_Naif
ะะฒั‚ะพั€

Thank you so much bro. Sending virtual hugs. Worked like a charm ;-)

ediahmadfauziserbhaneka
ะะฒั‚ะพั€

This is the best free software Ive seen. Respect.

johnkennicoleprado
ะะฒั‚ะพั€

Thank you for another amazing video! I am quite new to Python and your channel (only watched a few videos so far), and your videos make it all look really exciting! I'm a big sucker for practical applications when it comes to coding :)

One thing that I can think of in terms of foolproofing: If the config file gets somehow deleted, I assume the app will crash on startup (maybe? I am new as I said), so maybe it is possible to check in the code if the config file exists, and if it doesn't proceed to create one with some default values before running anything else.

I wonder how tough this will be to implement, I might actually try to do this myself in a fork in the future.

PS: Love your accent!

antonispao