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

File Dialog height/width not working #1476

Closed
igor-martinovski opened this issue Dec 12, 2021 · 2 comments
Closed

File Dialog height/width not working #1476

igor-martinovski opened this issue Dec 12, 2021 · 2 comments
Labels
priority: high high priority state: ready Fixed/Added and will be present in an upcoming release type: bug bug

Comments

@igor-martinovski
Copy link


Version of Dear PyGui

DPG Version: 1.1.3
Python Version: Python 3.8.9
Operating System: Windows 10

My Issue/Question

Cannot set the size of the file dialog. Height and width parameters have no effect.

To Reproduce

Create a file_dialog and set height and width to non-default values.

Expected behavior

Change the file_dialog size.

Screenshots/Video

Capture

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg

dpg.create_context()

def callback(sender, app_data):
    print("Sender: ", sender)
    print("App Data: ", app_data)

file_dialog = dpg.add_file_dialog(directory_selector=True, show=False, 
                    callback=callback, 
                    height=300,     # <-- Here
                    width=600,      # <-- Here
                    tag="file_dialog_id")

with dpg.window(label="Tutorial", width=800, height=300):
    dpg.add_button(label="Directory Selector", callback=lambda: dpg.show_item("file_dialog_id"))
    print (dpg.get_item_configuration(file_dialog))
    
dpg.create_viewport(title='Custom Title', width=800, height=600)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
@hoffstadt hoffstadt added the priority: high high priority label Dec 13, 2021
@hoffstadt
Copy link
Owner

Hi, thanks for the report (and sponsorship)! We will have this fixed in the next release!

@hoffstadt
Copy link
Owner

Fixed in next release. Also added min/max sizes.

@hoffstadt hoffstadt added state: ready Fixed/Added and will be present in an upcoming release and removed state: pending not addressed yet labels Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high high priority 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