avatarManpreet Singh

Summarize

This new Python package builds awesome GUI’s!

Welcome back! Python is an awesome programming language with a ton of capability, one of these features is GUI development, and there is a new GUI package in town! The name of this GUI package is Dear PyGui, luckily for us, this package is already hosted on GitHub, if you want to jump straight to this package, check out the link below:

In my experience, I always like seeing some of the examples of the outputs of these packages, below is a link to their examples page:

In my opinion, some of the examples from this new package look awesome!

On top of this, this package differs from other front-end packages because Dear PyGui uses your GPU for extremely dynamic interfaces!

If you want to install this package, you can use the following pip commands:

pip install dearpygui
or
pip3 install dearpygui

From there, you can begin building out your GUI’s, check out the example below to get an idea on how to build out a GUI:

import dearpygui.dearpygui as dpg
def save_callback():
    print("Save Clicked")
dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()
with dpg.window(label="Example Window"):
    dpg.add_text("Hello world")
    dpg.add_button(label="Save", callback=save_callback)
    dpg.add_input_text(label="string")
    dpg.add_slider_float(label="float")
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

The output of this code is this:

Without a doubt, this is a pretty impressive GUI package for Python, do you plan on checking this package out? I would love to hear your thoughts on this!

As Always

if you have any suggestions, thoughts, or just want to connect, feel free to contact/follow me on Twitter! Also, below is a link to some of my favorite resources for learning programming, Python, R, Data Science, etc

Thanks so much for reading!

Coding
Programming
Python
Software Development
Software Engineering
Recommended from ReadMedium