hoffstadt / hoffstadt/DearPyGui

Window created with show=False doesn't respect init file

Open
#2,085 1 comment 0 reactions 0 assignees View on GitHub
state: pending type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## Version of Dear PyGui

Version: 1.9
Operating System: Windows 10

## My Issue/Question

When I create a hidden window (`show=False`), e.g. an about box, and show it later via a button click, it defaults to the 0,0 position, even though I do save the window positions on exit in an .ini file as described in the docs. It does work when setting the value `show=True` - but I don't want to show all windows on startup.

## To Reproduce

Steps to reproduce the behavior:
- create window with `show=False` and make it visible on button click
- run applicaton, show window and move it around
- `use save_ini_file()` and `configure_app()` to save an ini file of all window positions and restore them
- re-run application -> window defaults back to 0,0

- change `show=True`
- -> Window appears where it is supposed to

## Expected behavior

Window appears on last saved position defined in the dpg.ini file

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.