DearPyGui: Window never appears if created with option no_focus_on_appearing on second time

Version of Dear PyGui

Version: 0.8.16 Operating System: Windows 10

My Issue/Question

Window never appears if created with option no_focus_on_appearing=True on second time i.e. window get created but never comes into foreground. Earlier i was thinking after setting up value rendering stop but that is not the case.

image

image

To Reproduce

Steps to reproduce the behavior:

  1. Run the code

Expected behavior

post setting up value by button on typing window should created and appear as well just it should not have the focus. Currently window is created but not appearing.

Screenshots/Video

XXX (you can drag files here)

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg

def childwindow(sender):
    if dpg.does_item_exist(3):
        dpg.add_text('Child Window exist', parent=1)
    with dpg.window(label='Child Window', id=3, width=150, height=100, pos=(160,100), no_focus_on_appearing=True):
        dpg.add_text('Child Window', id=36)

def setvalue():
    dpg.set_value(item=2,value='Value has been set')
    dpg.delete_item(3)

with dpg.window(label='Main Window', id=1, width=500, height=500):
    dpg.add_input_text(label='window button', id=2, callback=childwindow)
    dpg.add_button(label='button', id=4, callback=setvalue)

dpg.start_dearpygui()

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 28 (13 by maintainers)

Commits related to this issue

Most upvoted comments

We do plan on opening up a custom combo box and list box API that you could use with filter_set to accomplish that but it will probably be a few weeks out!