DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

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

Open tobkum opened this issue 2 years ago • 1 comments

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

tobkum avatar May 01 '23 13:05 tobkum

Is this still beeing fixed? I have the same issue on 2.0.0.

Niki2821 avatar Feb 21 '25 12:02 Niki2821