Create a Python App with Dear PyGui - Graphic User Interface

Python Simplified
Python Simplified
361 هزار بار بازدید - 4 سال پیش - ** IMPORTANT NOTES ** finishedProject/app.py
** IMPORTANT NOTES ** finishedProject/app.py 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: https://github.com/MariyaSha/SimpleSMSspamFilter_GUI/blob/main/finishedProject/app.py 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: https://github.com/MariyaSha/SimpleSMSspamFilter_GUI ****************************************** Time Stamps: ****************************************** https://www.seevid.ir/fa/w/2RocXKPPx4o - Intro https://www.seevid.ir/fa/w/2RocXKPPx4o - Starter files walkthrough https://www.seevid.ir/fa/w/2RocXKPPx4o - Open app.py in Code Editor https://www.seevid.ir/fa/w/2RocXKPPx4o - Set widow size https://www.seevid.ir/fa/w/2RocXKPPx4o - Set font size https://www.seevid.ir/fa/w/2RocXKPPx4o - Set a theme https://www.seevid.ir/fa/w/2RocXKPPx4o - Initialize window object https://www.seevid.ir/fa/w/2RocXKPPx4o - Run Python file from command line https://www.seevid.ir/fa/w/2RocXKPPx4o - Adjust position on secondary window https://www.seevid.ir/fa/w/2RocXKPPx4o - Display an image https://www.seevid.ir/fa/w/2RocXKPPx4o - Set padding https://www.seevid.ir/fa/w/2RocXKPPx4o - Add separator https://www.seevid.ir/fa/w/2RocXKPPx4o - Add Vertical Spacing https://www.seevid.ir/fa/w/2RocXKPPx4o - Add a text widget https://www.seevid.ir/fa/w/2RocXKPPx4o - Change text widget color https://www.seevid.ir/fa/w/2RocXKPPx4o - Add a text input widget https://www.seevid.ir/fa/w/2RocXKPPx4o - Add a button https://www.seevid.ir/fa/w/2RocXKPPx4o - Attach a callback function to the button https://www.seevid.ir/fa/w/2RocXKPPx4o - Define callback function https://www.seevid.ir/fa/w/2RocXKPPx4o - Discussing the logic behind the callback function https://www.seevid.ir/fa/w/2RocXKPPx4o - Access window object from inside the callback function https://www.seevid.ir/fa/w/2RocXKPPx4o - Collecting user input https://www.seevid.ir/fa/w/2RocXKPPx4o - Importing functions from a different Python file https://www.seevid.ir/fa/w/2RocXKPPx4o - Learn more about these functions in my Simple SMS Spam Filter video tutorial! https://www.seevid.ir/fa/w/2RocXKPPx4o - Adding widgets inside callback function https://www.seevid.ir/fa/w/2RocXKPPx4o - Pre-Process the input https://www.seevid.ir/fa/w/2RocXKPPx4o - Predict if the input is spam or not https://www.seevid.ir/fa/w/2RocXKPPx4o - Adding a dynamic text widget inside callback function https://www.seevid.ir/fa/w/2RocXKPPx4o - Hide widget https://www.seevid.ir/fa/w/2RocXKPPx4o - Replace hidden widget with a new one https://www.seevid.ir/fa/w/2RocXKPPx4o - Test the application https://www.seevid.ir/fa/w/2RocXKPPx4o - Thank for watching! ****************************************** DearPy GUI Documentation: https://hoffstadt.github.io/DearPyGui/index.html #python #pythonprogramming #gui #graphicuserinterface #app #application #dearpygui #dearpy #programming #atom
4 سال پیش در تاریخ 1399/09/07 منتشر شده است.
361,019 بـار بازدید شده
... بیشتر