Questions tagged [dearpygui]

DearPyGui is a simple to use Python GUI framework. It provides a wrapping of DearImGui that simulates a traditional retained mode GUI, as opposed to Dear ImGui's immediate mode paradigm.

DearPyGui is fundamentally different than other Python GUI frameworks. Under the hood, DearPyGui uses the immediate mode paradigm allowing for extremely dynamic interfaces. Similar to PyQt DearPyGui does not use native widgets, but instead draws the widgets using your computer's graphics card (using Directx11, Metal, and Vulkan rendering APIs).

In the same manner Dear ImGui provides a simple way to create tools for game developers, DearPyGui provides a simple way for python developers to create quick and powerful GUIs for scripts.

37 questions
3
votes
1 answer

No module named 'dearpygui.core'

I am trying to run this code using Notepad++ version 8.14 from dearpygui.core import * from dearpygui.simple import * #window object setting set_main_window_size(540, 720) set_global_font_scale(1.25) set_theme("Gold") with window("SMS SMS Spam…
curiouscheese
  • 117
  • 1
  • 9
3
votes
2 answers

How to draw a PIL image to a DearPyGui canvas?

I would like to draw an image to a canvas in DearPyGui : import dearpygui.core as dpg with sdpg.window("Main Window"): dpg.set_main_window_size(800, 800) dpg.set_main_window_title("Pixel selector") dpg.add_drawing('drawing', width=400,…
Leogout
  • 1,187
  • 1
  • 13
  • 32
2
votes
0 answers

How to play video file with audio with DearPyGUI (Python)?

I'm using DearPyGUI to make a simple media player that can play video file (mp4, etc.) together with it's audio. The pre-requisite is that DearPyGUI is a must, however video feature will not exist until v2.0, which is still far in the…
Vi Tiet
  • 29
  • 3
1
vote
1 answer

How can i format a link for pytube?

im working on a Youtube Downloader with pytube and dearpygui (dpg) right now. While trying to fuse the GUI with the rest of the Code i ran into Issues with pytube. Error Code: Traceback (most recent call last): File…
knecht
  • 29
  • 7
1
vote
0 answers

Incorrect converting from PIL image to DearPyGUI image

I read somewhere how to convert a PIL image into a DearPyGUI image. The idea is that the user specifies the path to the png-image, the program opens it as a PIL-image and then displays it (as a dynamic texture) in DearPyGUI. So, for some reason, the…
KuraKur
  • 11
  • 3
1
vote
0 answers

Set initial axis limits while preserving pan/zoom in DearPyGui

Using DearPyGui, the x-axis and y-axis limits of a plot can be set using the dpg.set_axis_limits function, i.e. dpg.set_axis_limits("xaxis", xmin, xmax) dpg.set_axis_limits("yaxis", ymin, ymax) This does set the limits of the respective axis, but…
hyperdelia
  • 1,105
  • 6
  • 26
1
vote
1 answer

Anchor button at the bottom of the screen in Dear PyGui

I'm writing a file management and config file editing app in Python 3.10 with Dear PyGui as the GUI library. I would like to place a group at the bottom of the window so it: Stays at the same place when the rest of the content in the window…
ohyeah2389
  • 25
  • 4
1
vote
0 answers

MessageBox in DearPyGui

I am using the DearPyGui library for creating a user interface in python. In a function that runs my algorithm, the algorithm needs some input from the user (yes/no question). Is it possible to easily implement such a messagebox in DearPyGui without…
christoph
  • 11
  • 1
1
vote
1 answer

Run function every x seconds - dearpygui

I have a window application in which I am trying to refresh a table every x seconds after running my function. However I could not find any suitable method to rerun the function within the event loop of the app. This is my code and the function I'm…
NikoD
  • 15
  • 4
1
vote
1 answer

Can't add clicked handler for drawn figures using DearPyGui

I can't add clicked handler for drawn figures, in this case it circle. I tried same, but for text and it work correctly, but for rectangle don't work too. Here is the code that doesn't work: import dearpygui.dearpygui as dpg def change_text(): …
gook
  • 70
  • 1
  • 7
1
vote
1 answer

Cannot use DearPyGui function, like set_main_window_size, or add_drawing

I am usin DearPyGui to offload the work to my GPU. I want to create a simple window with a logo on it but I can't seem to find why it is not working. Here's the code : from dearpygui.core import * from dearpygui.simple import…
Mathieu
  • 11
  • 2
1
vote
1 answer

DearPyGUI: How can I import a simple csv file (using a file dialog run in UI) for use as a variable

For example, the use case would be the user downloading a csv file that their friend made with another copy of my program, finding it from my program using open_file_dialog and then allowing the program to use it as a list variable to create the…
0
votes
0 answers

Dearpygui - Stacked bar chart not supported

I cant find in docs support for Bar stacked plot. I found out though that its possible to overrender bars, which requires each subsequent bar to increment previous series... Isnt there some more native way or api for stacked bar plots? What I…
Martin
  • 3,333
  • 2
  • 18
  • 39
0
votes
0 answers

How to set right y axis ticks using Dearpygui

I can use set_axis_ticks() to set x axis ticks successfully, but can not set the right y axis. Does anyone know why? this is my test code, I want to set right y axis ticks, but the left y axis works. import dearpygui.dearpygui as dpg from math…
0
votes
1 answer

DearPyGUI script won't start after wrapping it in a class

I have a messy code for sensor live data recording which I rewrote in OOP style, docstrings and comments. The new version runs without errors but the GUI is invisible or won't start at all. Here I have a minimal example. First script runs and…
jvkloc
  • 623
  • 1
  • 5
  • 13
1
2 3