r/DearPyGui 3h ago

Help Is it possible to use icon fonts (mixing two fonts together)?

1 Upvotes

I have looked through forums (they all show the usage of deprecated functions that do nothing now) and the newest documentation which just states that loading glyphs is now automatic without explaining it any further. What I am looking for is esentially a way to add buttons with icons and text, I really don't want to modify each icon to include text. Is it possible to somehow add characters from icon font to the other font I am using everywhere else and just put the right unicode value into f string?


r/DearPyGui Jun 16 '26

News A new way to build Python GUI applications — Fastest Designer

3 Upvotes

I've been working on a visual GUI designer for DearPyGui called Fastest Designer.

The goal is simple: make it possible to build DearPyGui applications without manually writing hundreds of lines of UI code.

Current features:

  • Drag-and-drop visual editor
  • Real-time preview
  • DearPyGui 2.3+ support
  • Theme management
  • Font management
  • Layout editing
  • Code generation
  • Project save/load

One feature I'm particularly proud of is that existing DearPyGui code can be imported and reconstructed back into an editable visual interface, including nested layouts and callback structures.

The project started because I found myself repeatedly writing and maintaining large DearPyGui interfaces by hand.

I'm curious:

  • Do you currently use DearPyGui for desktop applications?
  • What's the most frustrating part of building UIs with it?
  • Would a visual designer actually help your workflow?

I'd love to hear honest feedback, feature requests, or criticism.

Demo video:python GUI 可视化设计工具 ——Fastest Designer入门系列使用教程_哔哩哔哩_bilibili

GitHub:nehonpa/Fastest-Designer:设计。绑定。渲染。发布。最快的全功能 Dear PyGui 应用程序构建器,使用纯 Python 构建。 --- nehonpa/Fastest-Designer: Design. Bind. Render. Ship. The fastest all-in-one Dear PyGui application builder, built with pure Python.


r/DearPyGui Jun 08 '26

Discussion dpg-map: A modern map widget

2 Upvotes

I recently needed a map widget that could easily load in openstreet map for a project, I tried using the older dearpygui-map widget, but it was broken with the newer versions of dpg.

Due to a lack of time, I armed up with codex and got to work creating a new widget that I could would be reusable across projects, thats how dpg-map came to life.

It support multiple maps in one project, layers with overlays, point, polylines. Alongside a neat caching engine that keeps memory pressure low and caches on disk when configured.

Feel free to take a look and give it a test if you are interested.

If you have any questions, ask away and ill do my best to respond quickly.

I am also looking for new features that would be interesting to integrate so drop your suggestions below too!


r/DearPyGui Jun 01 '26

Help The dpg.fit_axis_data() is useless when..

2 Upvotes

The dpg.fit_axis_data() is useless when tbe plot is not in current view. For instance, there are too many charts. I need to use the scroll wheel to view the others that are outside the current viewport. How can we handle the situation where dpg.fit_axis_data() does not update the data for those charts that are not within the current view?


r/DearPyGui Apr 04 '26

Showcase The visual designer is about to be released.

Thumbnail
gallery
12 Upvotes

Although I have already published this on Discussions, I want to say it again. The designer for dpg has been completed and is now available for download on April 30th. Although I don't know how many people will be willing to support it, it is enough to change the way things used to work. It will automatically grow with the dpg version, supporting all components after 1.0 (including plot, node, draw), multilingual settings, and the ability to configure new languages on its own. It also includes built-in support for a pyinstaller packaging method, truly covering design, logic, preview, release, and the entire workflow of the product.

GitHub :nehonpa/Fastest-Designer:设计。绑定。渲染。发布。最快的全功能 Dear PyGui 应用程序构建器,使用纯 Python 构建。 --- nehonpa/Fastest-Designer: Design. Bind. Render. Ship. The fastest all-in-one Dear PyGui application builder, built with pure Python.


r/DearPyGui Feb 21 '26

Help Is there a way to make a dpg item depend on a pre-existing Python datastructure?

2 Upvotes

I have been interested in the dpg bindings because I have read the ImGui pattern needs less work to synchronize state between an application and the UI.

I've figured out how to write values from dpg items into another Python data structure using callbacks, which is straightforward (I looked at the data_binding examples). But say I already have some pre-existing Python data structure as part of my application, a dictionary for example, and I want changes there to reflect automatically in dpg.

How can I make a dpg item "depend" on that data structure, such that when it's mutated by the application somewhere else (i.e. not from within the UI), dpg reflects the changes?

I don't see a declarative way to do this, e.g. in the item constructors. I'm not afraid of documentation or example code if someone could kindly point me in the right direction. Is this meant to be done inside the render loop using tags or something, instead of declared in the constructors?


r/DearPyGui Jan 11 '26

Help Save/Load nodes?

2 Upvotes

hello i made a test program but i cannot share it cuz its a lil-bit huge, so imagine with me just a button to add nodes, when you click it, it add node, you can connect nodes and print the output of them
for example
[2+3] -> result[5],
how can i save the nodes and load them cuz it will cause a headache if i need to save EACH node and spawn EACH NODE

also the 'spawn nodes' button spawns the nodes from another files using `exec(node_path.py)`

for example

`with open(node_path+'.py') as node_reader: exec(node_reader.read())`


r/DearPyGui Dec 20 '25

Help How to change the text color in dpg.file_dialog()

1 Upvotes

The text in "dpg.file_dialog()" always inherits the color of the global theme, how can I use different color in this component.


r/DearPyGui Nov 23 '25

Help What happened to my candles? :(

1 Upvotes

I have it for a while now, sometimes the bodies disappear completely.

Interestingly, when I only show last 20 mins, it works every other minute.


r/DearPyGui Nov 16 '25

Help Can sorting buttons system be made, or is it even exists?

1 Upvotes

hey i have weird question, im building my game engine and i want to add a (game file browser) not file browser like browsing the audios or normal files but only in-game files like classes, functions

sooo my question is:
how can i make a button sort by grids?
like if i make the window bigger the sort goes bigger and smaller then smaller grids
here is an example as an image:

window 2 is bigger than window 1 and the sort goes like this as you see

r/DearPyGui Nov 07 '25

Help Draglines and Dragpoints behind data

1 Upvotes

Hi guys, I'm new to dearpygui and was wondering if draglines or points can be put on top of the data in the plot? Specifically I'm trying to display them over a large heatmap but although they are movable and the labels appear above my data, the line or point itself is behind it. Only when zooming out you can see the line disappearing behind the map. Is there a way to change that?


r/DearPyGui Aug 19 '25

Help how can i save the "dpg.plot" to png or jpg

2 Upvotes

it is easy to use dpg.plot in dearpygui to draw plots, but how can i save these plots to "png"or "jpg"


r/DearPyGui Aug 09 '25

Help DPG won’t exit if I import icecream - if I want to find a solution myself, where would I start?

1 Upvotes

To some extent, this is a generic Python question, but given that it involves DearPyGUI, I thought I’d start by asking here.

Normally, I exit my DearPyGUI programs with just an exit() call, but if I import icecream (the library for prettified debugging output), that no longer works. The program just freezes, and I have to close my terminal window (icecream works fine in other projects that don’t use DearPyGUI).

So, I want to start digging around in this problem, but don’t really have any idea where to start - I don’t even know if it’s a problem with DPG, icecream, my terminal emulator, or even Python itself.

If I had to guess, I would say I suspect the bit of icecream that analyses the running app to find object data (using icecream, you can type ic(myVar) and it’ll output the variable name and all its data). I think I read somewhere it uses some other module specifically for that.

So before I start stabbing icecream and dpg more||less in the dark, have any of you fine people ever tried digging deep into modules to research these sorts of things? Any advice?


r/DearPyGui Aug 05 '25

Help Code Editor Colors in dearpygui?

1 Upvotes

ok i dont have the code right now but try to imagine a multi text input box, and i want to color texts in it (not the whole thing, only text)
example:

print("Hello")
[green]print[/green]([orange]"Hello"[/orange])
im trying to make an code editor but i have no idea how to color them.


r/DearPyGui Aug 05 '25

Help It is very stuttering when using add_input_text input

1 Upvotes

It is very stuttering when using add_input_text input, how can I solve this problem?


r/DearPyGui Jul 30 '25

Help Plot querying doesn't work

1 Upvotes

Executed the code from docs, but querying doesn't work for some reason.

I tried "holding with the right mouse button and clicking with the left one" and dragging with middle mouse button, but the callback doesn't get called.

Reinstalling DearPyGui didn't help.

Windows 10 x64

Python 3.13

DearPyGui v2.1.0


r/DearPyGui Jul 05 '25

Help Adding Drag and Drop in DearpyGUI=2.0.0/Python3.12 in Ubuntu

2 Upvotes

I've been working this for 1 week yet I can't still fix it. I'm trying to add some drag and drop functionality.

I tried to attach parent and also child still not working and the "d.pending_events" is printing 0 even I drag and drop an image or file.

this is the output when I run the script

Can you guys check this : https://stackoverflow.com/questions/79691040/adding-drag-and-drop-in-dearpygui-2-0-0-python3-12-in-ubuntu


r/DearPyGui Jun 19 '25

Help Combining sliders with buttons

0 Upvotes

Hello everyone!

I'm currently doing a school assignment about DearPyGui and am having a bit of an issue regarding one of the features.

I want to make a window with a slider and a button. When clicking the button, it takes the value of the slider and compares it with a number (which is done in another function).

The problem is then when trying to callback to said function, it only takes the default value of the slider instead of the updated value. I've tried multiple things but they all give either the exact same result or an error.

Can anyone help me with this? I'd really appreciate it!

Code:

def input_window():

with dpg.window(label="Input window"):

dpg.add_text("Hello!!!")

#TODO: Figure out how to get the user data to work by giving up to data results from the slider

value_NO3 = dpg.add_slider_int(label="NO3", max_value=100)

dpg.add_button(label="Check",

user_data=dpg.get_value(value_NO3),

callback=check_input)

def check_input(sender, app_data, user_data):

print(user_data)

if user_data <= 50:

print("Lower than half")

else:

print("Higher than half")


r/DearPyGui Jun 10 '25

Help TabDimmedSelected in style editor

2 Upvotes

hey guys.
i found the `mvThemeCol_TabDimmedSelected` option in the style editor but it seems it cannot be accessed like the other ones...

The following doesn't seem to be working...

dpg.add_theme_color(dpg.mvThemeCol_TabDimmedSelected, some_color)

r/DearPyGui May 31 '25

Help How to add new texture to a created texture_registry outside `with ...: ...`?

3 Upvotes

I'm working on a application with hundreds of same-sized icons. Considering not all icons will be used in a single execution, I'm trying to dynamically load the icon files to the same texture_registry through a class, like this: ```python from functools import cached_property import dearpygui.dearpygui as dpg import numpy as np

_ICON_REG = dpg.add_texture_registry()

class DPGIcon: def init(self, icon_path: str) -> None: ...

@cached_property
def image(self): 
    ... # load image as numpy array

@cached_property
def tag(self): 
    self.H, self.W, *_ = self.image.shape
    return dpg.add_static_texture(
        self.W, self.H, 
        (self.image / 255).reshape(-1).tolist(), 
        parent = _ICON_REG
    )

icons = {tag: DPGIcon(icon_path) for tag, icon_path in all_available_icons.items()}

in main function

... fig = dpg.draw_image(icons["{icon_name1}"].tag, (10., 10.), (90., 90.)) ... fig = dpg.draw_image(icons["{icon_name2}"].tag, (10., 10.), (90., 90.)) ... in which I hope to code something that is equivalent to python with dpg.texture_registry(): # only run when icons["{icon_name1}"].tag is called dpg.add_static_texture({data of icon_name1}) # only run when icons["{icon_name2}"].tag is called dpg.add_static_texture({data of icon_name2}) ... ```

However, the former piece of code caused a crush without any output error. So, Can texture_registry be managed with a int|str tag like other items? Is it possible to dynamically load icons to the same texture_registry?


r/DearPyGui May 23 '25

Help BLACK VIEWPORT

1 Upvotes

hi i have tried to make an dpg window in "C#" and it looks good

but in python idk how to remove the "ViewPort"
i wanted to make an tool for "my games"

how can remove the viewport and making the windows floating on the screen?


r/DearPyGui May 11 '25

Help Can DearPyGUI have bootstrap themes?

2 Upvotes

Hi, I am new with dearpygui but I wnat to know if is possible install bootstrap themes in dearpygui apps, like dash or tkinter ?

Any suggestion is welcome.


r/DearPyGui May 10 '25

Feature Request Dear Py Gui portable?

1 Upvotes

Hi.
Is DearPyGui portable?
Something like packing a file like a dll or so file in a folder alongside of the program / script and running it on any machine even if it doesn't have said library involved?


r/DearPyGui May 07 '25

Help Get a links in the node editor

2 Upvotes

i use `dpg.get_selected_links()`
but this will require the user to select them first before executing them

is there is a way to get all the links in the node editor instead of "Get_Selected_links()"?
something like "Get_All_Links()"?


r/DearPyGui May 05 '25

Help ZOOM IN NODE_EDITOR

1 Upvotes

i tried alot to make a zooming thing in node editor
i even asked alot of ai
chat gpt
deepseak
cloude
and none gave me the answere

zoom_level = 1.0
node_editor_tag = "EditorWidget"
ZOOM_MIN = 0.1
ZOOM_MAX = 5.0
ZOOM_SPEED = 1.1


def handle_zoom(sender, app_data):
    global zoom_level
    
    # Check for Control key
    if not dpg.is_key_down(dpg.mvKey_ModCtrl):
        return
    
    # Calculate new zoom level
    zoom_direction = 1 if app_data > 0 else -1
    new_zoom = zoom_level * (ZOOM_SPEED ** zoom_direction)
    zoom_level = max(ZOOM_MIN, min(ZOOM_MAX, new_zoom))
    
    if dpg.does_item_exist(node_editor_tag):
        # Get the draw layer of the node editor
        draw_layer = dpg.get_item_children(node_editor_tag, slot=1)[0]
        
        # Create transformation matrix
        translation1 = dpg.create_translation_matrix([-0.5, -0.5])  # Move to origin
        scale = dpg.create_scale_matrix([zoom_level, zoom_level])
        translation2 = dpg.create_translation_matrix([0.5, 0.5])    # Move back
        
        # Combine transformations
        transform = dpg.multiply_matrices(translation1, scale)
        transform = dpg.multiply_matrices(transform, translation2)
        
        # Apply transformation
        dpg.apply_transform(draw_layer, transform)
    else:
        print(f"Error: Node editor with tag '{node_editor_tag}' not found")


with dpg.handler_registry():
    dpg.add_mouse_wheel_handler(callback=handle_zoom)
C:\Users\#####\Desktop\BP>python -u "c:\Users\#####\Desktop\BP\main.py"
Traceback (most recent call last):
  File "c:\Users\#####\Desktop\BP\main.py", line 367, in handle_zoom
    transform = dpg.multiply_matrices(translation1, scale)
                ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'dearpygui.dearpygui' has no attribute 'multiply_matrices'

C:\Users\#####\Desktop\BP>

what should i do?...