Create a Python App with Dear PyGui - Graphic User Interface
*** IMPORTANT NOTES ***
finishedProject/ is now updated with global pred= []
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:03 - Open in Code Editor
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
1 view
105
31
2 weeks ago 00:00:00 1
Mojave - Live from Coachella 2025
3 weeks ago 01:58:13 1
Stive Morgan и Евгений Соколовский - Лучшие Хиты
3 weeks ago 01:03:53 1
#Panodrama - An Exposé of the Fake News BBC!
4 weeks ago 00:03:44 18
. 2: HEART OF CHORNOBYL | 1980’s LIVE-ACTION MOVIE
4 weeks ago 00:11:43 1
Revolutionizing Interior Design with AI: A Stunning Demo
4 weeks ago 00:02:24 3
AIPodcasts Review: Create Podcasts in Minutes with AIPodcasts! 🎙️
1 month ago 00:01:44 1
NEW AD: THE SWEAT ACT
1 month ago 00:02:10 1
Hood Dreams: 2025’s Unfiltered Hustle Rap Anthem
1 month ago 00:02:51 2
Trump’s Beach Party: I’m Not Here to Relax
1 month ago 00:02:36 1
NEW SINGLE - DOWN IN EL SALVADOR
1 month ago 00:00:51 2
Trump, Putin, and Kim Jong Un Perform ’Stayin’ Alive’ | AI Remix
1 month ago 00:02:32 1
The Sponsored White House Easter Egg Roll
1 month ago 00:03:03 1
Make the Hood Great Again: 2025’s Unfiltered Underground Rap Anthem
1 month ago 00:01:42 2
NEW AD: . (Donald’s Internet Technology Zone)
1 month ago 00:02:03 2
Survival Flight: Part 1 | Political AI Music Video
1 month ago 00:02:44 1
National Embarrassment (National Treasure parody)
1 month ago 00:12:59 1
DIY | macrame tassel key chain | 마크라메 태슬 키 체인
1 month ago 00:15:46 2
Hair grows like crazy and doesn’t fall out,🌿an old grandmother’s recipe!
1 month ago 00:00:00 1
Create Your Own Gemstone Refractometer At Home Easily #gemstone #refractometer @sunmoonbay
1 month ago 00:04:06 12
Better Animated Grain Texture | After Effects Tutorial
1 month ago 00:10:01 18
Beautiful Lighting & Shading in After Effects with Layer Styles
1 month ago 00:00:00 5
Relaxing Jazz Instrumental Music & Cozy Rainy Ambience 🌧️ Smooth Jazz for Stress Relief, Unwinding
1 month ago 03:39:23 2
Whiskey Blues - Elegant Music for a Relaxing Background | Smooth Blues & Jazz Ballads