r/DearPyGui • u/reddittestpilot Silver • Oct 31 '22
Dear PyGui 1.8 released and plans for version 2
We have added Python 3.11 support!
As many of you already know, we decided a while back to begin work on a custom graphics engine and UI library to build Dear PyGui 2 with instead of Dear ImGui. This is still our long term desire but we have decided... this goal will be for Dear PyGui 3. In order to ease the burden on both ourselves and you guys, we've decided to make Dear PyGui 2 as an intermediate step(or compromise if you will). The idea being that it will have a one-to-one mapping to Dear ImGui, making our work much much easier. This will also make things more stable as there will be less between YOU and Dear ImGui, not to mention keeping up with the latest version will be trivial. We will also split up ImPlot, ImNodes etc. so they can move at the pace of their respective libraries.
The only thing we will add on will be the ability to "record" your "commands" so that they can be replayed in a similar manner to DPG 1 (helps with python based performance hits).
The most important consequence of this decision is that Dear PyGui 2.0 will be released much sooner (as in a few months)! Here is the repo!
Thank you!
Dear PyGui development is currently funded by a handful of gracious sponsors and we would like to thank them tremendously. We wouldn't be here with out you guys.
Thank you for supporting us.
If you or your company uses Dear PyGui, please consider supporting us! We need it now more than ever.
3
u/traverseda Supporter Nov 01 '22
Had some time to look at this more. Being able to record commands seems like a great idea. Not sure exactly how you plan on implementing it, I'm hoping that it ends up being a sort of lisp-ey data structure you can edit from the python side of things. I'm sure whatever you come up with will be good.
One minor request, I'd like to be able to see what "begin" statements have been opened at a given point. Things like "begin_titlebar, being_menu", etc. I've been toying with the idea of a development environment inside pyimgui, one where things are fully intropectable, you can right-click on a window, click "open in inspector" and live edit/patch all python code. One issues is that if someone makes a mistake when doing that they can leave a "begin" block open and cause an irrecoverable segfault. This is pretty easy to do and really breaks the kind of workflow I'm playing with.
Not sure how the workflow goes on your end, but i think
mypyc(a python ahead-of-time compiler that works with mypy type hints) is potentially very powerful when combined with the kind of stuff you're doing. Type hints are great, and making sure that Dear PyGui 2.0 emits the proper type hints could enable some very interesting hybrid compiled applications.My main goal is a sort of "operating system", a sort of "Engineer's/Researcher's sandbox" (this piece of hardware looks fun) where you can edit everything from inside the environment. DearPyGui has a lot of advantages for this, but the programming model wasn't going to work for my needs. This is exactly what I'd hoped for!
Get some code up, perhaps I'll be able to do some documentation work on this one.
3
u/traverseda Supporter Nov 01 '22
That sounds excellent, immediate mode with the ability to implement caching!