我已经开始使用该imgui
系统来可视化“任何东西”。我在我最初的几个小时里,并且遇到了似乎很常见的障碍。
然而,尽管我可以看到对 ImGui 的 C++ 版本的一些很好的支持(我将最终过渡到),但 python imgui 的内容大多是模糊的。
我正在寻找的是以下问题的解决方案:
while not glfw.window_should_close(window):
...
imgui.new_frame()
imgui.begin("foo-window", closable=True)
imgui.end()
一切正常。但是,窗口并没有关闭。我知道窗口不会关闭,因为它总是在每个循环中创建。
我正在寻找的是:
如何检测和识别特定窗口已关闭,并阻止它重新生成?