Skip to content

Add imgui_ctx.tree_node_ex (flags are missing in imgui_ctx.tree_node) #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

zaicruvoir1rominet
Copy link
Contributor

@zaicruvoir1rominet zaicruvoir1rominet commented May 30, 2025

Hi there !

Adding tree_node_ex to imgui_ctx, which would allow the following:

from imgui_bundle import imgui, imgui_ctx

with imgui_ctx.tree_node_ex("test", imgui.TreeNodeFlags_.default_open.value) as tree_node:
    if tree_node.visible:
        imgui.text('imgui_bundle is awsome, thanks')

/!\ Warnings:

  • I added the code manually, I don't know if imgui_ctx is supposed to be auto-generated or not
  • I tested this change on a side project, but didn't see any test plan for imgui_ctx in this repo, so do tell if there's a specific location where I should ask the tests

@pthom
Copy link
Owner

pthom commented Jun 3, 2025

Hi @zaicruvoir1rominet

Thanks a lot for this very nice contribution! I just merged it.


Ps: As a french guy, I love your username !

@pthom pthom merged commit 22d37ef into pthom:main Jun 3, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants