Vladimir Ein
Vladimir Ein
This is how tree nodes behave in Dear ImGui, which DPG uses as a backend. You can see it if you run `dpg.show_imgui_demo()` and go into the Widgets section.
Instead of the click handler, try to use the `item_toggled_open` handler. Unfortunately this one only fires when the node is expanded, and does not when it's collapsed. You can also...
I hope one day to push a PR that makes toggled_open event work on both open and close (as an opt-in behavior, so as not to break existing apps). Here's...
> I see that add_item_clicked_handler accepts user_data; but I have failed to figure out a method of providing variable item tags there. Get user data directly from the tree node:...
`dpg.popup` is only a convenient wrapper around `dpg.window(popup=True)`. You can even peek at its implementation in `dearpygui.py`, it's pretty lightweight. That said, you can make your own popup using `dpg.window(popup=True)`...
Can you please give this issue a more descriptive name?
Yeah, it would be great to have an async example in the doc. There are some examples on Discord that can be used as a starting point; they probably need...
PR #2275 is going to (partially) fix this: all drag tools (drag point, drag line, drag rect) will be used for auto-fit, unless `no_fit=True` is specified for them. Unfortunately this...
As [discussed earlier on Discord](https://discord.com/channels/736279277242417272/1162734296835039243/1163574381394546690), `add_font_range` has an internal limitation that the start of the range must not be zero. This is hardcoded into Dear ImGui - it uses zero...
> These minor hacks and quirks would be nice to be reflected in the docs. Totally agree, but unfortunately doc updates require some time/resources, and therefore don't happen often. >...