Skip to content
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

Tree node is not open by default with "default_open=True" #1846

Closed
sedenka opened this issue Jul 25, 2022 · 1 comment
Closed

Tree node is not open by default with "default_open=True" #1846

sedenka opened this issue Jul 25, 2022 · 1 comment

Comments

@sedenka
Copy link

sedenka commented Jul 25, 2022

Version of Dear PyGui

Version: 1.6.3 (master@9989e6f)
Operating System: Windows 10

My Issue/Question

A tree node is not open by default with default_open=True. The option works as expected for version 1.6.2 installed using pip install dearpygui but the node is closed when I run the same code using DPG built locally from the source code. I hope I did not mess up anything.

To Reproduce

Steps to reproduce the behavior:

  1. Checkout DearPyGui
  2. Create & activate venv
  3. Install DearPyGui from the local folder (pip install .\DearPyGui)
  4. Run the example code below

Expected behavior

from_pypi

Screenshots/Video

from_source

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

with dpg.window(label="Example Window", tag="Primary"):
    with dpg.tree_node(label="Tree node1", default_open=True):
        dpg.add_text("Not open by default")

dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
@hoffstadt
Copy link
Owner

This was fixed in 1.7.3.

@hoffstadt hoffstadt removed state: pending not addressed yet type: bug bug labels Oct 31, 2022
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

No branches or pull requests

2 participants