Create a Python App with Dear PyGui - Graphic User Interface

preview_player
Показать описание
*** IMPORTANT NOTES ***

Please avoid initializing it at check_spam(pred=[]), but initialize it earlier on a global scope and only then pass it to check_spam(pred). Complete + Updated Code on Github:

If you had any issues with the code presented in this video - please check out the link above to see if it resolves is!

*** VIDEO DESCRIPTION ***

Learn how to create a fully-functional Python app step by step!
In this project, we will build a graphic user interface with the brand new Dear PyGui library!
We will connect this interface to my Simple SMS Spam Filter, which we've built together in a previous project.
We will learn how to display images, text, user input, buttons, and separators, as well as hiding widgets and "click" event callback functions.

Starter Files:

******************************************
Time Stamps:
******************************************
00:00 - Intro
00:39 - Starter files walkthrough
01:24 - Set widow size
01:43 - Set font size
02:00 - Set a theme
02:24 - Initialize window object
03:32 - Run Python file from command line
04:37 - Adjust position on secondary window
05:21 - Display an image
07:14 - Set padding
07:52 - Add separator
08:10 - Add Vertical Spacing
08:27 - Add a text widget
09:02 - Change text widget color
09:57 - Add a text input widget
11:02 - Add a button
11:19 - Attach a callback function to the button
11:43 - Define callback function
12:45 - Discussing the logic behind the callback function
13:39 - Access window object from inside the callback function
14:04 - Collecting user input
16:11 - Importing functions from a different Python file
17:04 - Learn more about these functions in my Simple SMS Spam Filter video tutorial!
17:19 - Adding widgets inside callback function
17:42 - Pre-Process the input
18:16 - Predict if the input is spam or not
19:13 - Adding a dynamic text widget inside callback function
20:17 - Hide widget
20:47 - Replace hidden widget with a new one
21:04 - Test the application
22:34 - Thank for watching!
******************************************

DearPy GUI Documentation:

#python #pythonprogramming #gui #graphicuserinterface #app #application #dearpygui #dearpy #programming #atom
Рекомендации по теме
Комментарии
Автор

Hi, I got this two errors when I try to run the first part of the code, I'm stuck at the logo.
TypeError: function missing required argument 'pmax' (pos 4)
Exception: Error parsing DearPyGui Marvel::draw_image command on line 16.

Could you please help me with that?

t-vrvideos
Автор

You have a tremendous gift for teaching. I recently got back into coding after a 6+ year hiatus. I mostly program for fun and your tutorials have been a godsend in helping me brush up on Python. Keep up the excellent work!

scorheim
Автор

This channel is so underrated this is the best python channel

abdallahmohammed
Автор

I did GUI programming w/Java and Swing for several years, but this is the first time I've done any GUI programming with Python. This was really a fun tutorial to go through!

btgrant
Автор

Great video and great tutorial style! Love the breakdowns on screen and the time spent on the timestamps!

OfficialDevTips
Автор

I wish every youtube tutorial videos are like this..
she even put the time stamps (chaptering)

judasthepious
Автор

as a youtuber and programmer myself. I came here to learn something new. To see what you have to offer, but i cant help it, i have to tell you this... your beauty is just out of this world.

MygenteTV
Автор

Congrats, great tutorial for beginners. Just one info. When you import functions from another module, you don't need to repeat the imports of that module. Python does this automatically during the import. I am glad to see young women taking interest in science and programming. Keep up the good work!

alexanderpoplawski
Автор

Amazing editing! You've been better and better. And the content was on point! Thank you.

wandersonbarcelos
Автор

Dang, you are the best programmer I have ever seen in this YouTube channel. Your programs are so clean and neat, as well as the Keep on going

simplegametutorials
Автор

Never before i have felt so excited when I watched a video about programming

minhnguyenhainhat
Автор

Nice & Sweet Timing! I am ready for a weekend project.

Great job as always my friend.

digigoliath
Автор

As a somewhat seasoned software developer, this Dear PuGui looks like an absolute nightmare 👀 however, it would be fantastic for new developers! Also, super great tutorial!!

RyanyoIII
Автор

I have been trying to learn Python and I am super stoked to find this channel. You are my favorite Python teacher
🤘😄 Thanks for your videos!

dyhosjw
Автор

Dear PyGui? How cool. Nice work keep it up!

CodingEntrepreneurs
Автор

You can use the comma instead of + in print :3 it also adds space for your strings so you don't have to add them manually !
print("hello", "world") -> will produce hello world

DroidZed
Автор

This is awesome, bringing NLP to life with NLTK! Awesome work!

NicholasRenotte
Автор

One thing is for sure, this channel is going to be really big 😳

harshitsrivastava
Автор

Simple, to the point, and the app looks great! I've really been wanting to try this library out, thank you for this video!

TheFuneralPyre
Автор

I've been been fiddling around for a week looking at the other GUIs and not liking them but looks perfect! Especially the code. TY!

oraz.