Vladimir Ein

Results 304 comments of Vladimir Ein

Regarding that "no container to pop" error, let me quote my own explanation I gave on Discord: > **IMPORTANT:** When calling DPG from multiple threads, keep in mind certain parts...

Another workaround, instead of making the reference node transparent (which does have side effects on the minimap), would be to do a `dpg.hide_item` on that node - but first let...

Played with node editor a bit... until this enhancement is implemented, using a reference node appears to be the only workaround. Also, as soon as you get a real node...

Looks like a duplicate of #1896: > Both bind_item_handler_registry and set_viewport_resize_callback have this bug.

Here's how it typically works: - If `font` is not specified, `get_text_size` relies on the default font - or, rather, the _current font_ in ImGui at the time `get_text_size` is...

You can do that via asyncio, but that would require you to set up asyncio in your program. If it's only one message box, I'd say go with callbacks. BTW...

The problem here is that `dpg.start_dearpygui()` is not async. Moreover, `on_btn_click` is called as a regular (synchronous) function, and not even in asyncio thread. To do that properly, you'd need...

Good job! A couple of notes here. Regarding your synchronous solution: it might be better to call `run_callbacks` after `dpg.render_dearpygui_frame()`, not before it. The reason is, `dpg.render_dearpygui_frame()` is what generates...

> Here we execute the provided function upon confirmation, which should be sufficient in most cases. Yeah, but (1) it's not what the OP asked for (it's not going to...

Oops, I was a bit wrong about synchronization. It's sufficient to understand that the callback will be run in the handlers thread, as usual in DPG. The first point still...