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

default_open=True has no effect for collapsing_header #1893

Closed
festlv opened this issue Sep 27, 2022 · 1 comment
Closed

default_open=True has no effect for collapsing_header #1893

festlv opened this issue Sep 27, 2022 · 1 comment
Labels
state: ready Fixed/Added and will be present in an upcoming release type: bug bug

Comments

@festlv
Copy link

festlv commented Sep 27, 2022

Version of Dear PyGui

Version: 1.7.1
Operating System: Ubuntu 22.04

My Issue/Question

default_open=True has no effect on collapsing header- it appears to be a regression of #1327

To Reproduce

Steps to reproduce the behavior:

  1. Create collapsing header with default_open=True

Expected behavior

A collapsing header should be opened when window is created

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg

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

with dpg.window(label="Regression", width=800, height=800):

    dpg.add_button(label="open cp1", callback=lambda:dpg.set_value("cp", True))
    dpg.add_button(label="close cp1", callback=lambda:dpg.set_value("cp", False))

    with dpg.collapsing_header(label="cp1  (default close)", tag="cp"):
        dpg.add_text(default_value="Some text")

    with dpg.collapsing_header(label="cp2   (default open)", default_open=True):
        dpg.add_text(default_value="Some text")

dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

Screenshots/Video

2022-09-27_15-41-08

@festlv festlv added state: pending not addressed yet type: bug bug labels Sep 27, 2022
@hoffstadt hoffstadt added state: ready Fixed/Added and will be present in an upcoming release and removed state: pending not addressed yet labels Oct 17, 2022
@hoffstadt
Copy link
Owner

Fixed in next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: ready Fixed/Added and will be present in an upcoming release type: bug bug
Projects
None yet
Development

No branches or pull requests

2 participants