-
Notifications
You must be signed in to change notification settings - Fork 78
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
Using pure python backend with test_engine #149
Comments
Hello, Integrating ImGui TestEngine directly from python, and without using HelloImGui and ImmApp is very difficult. ImGui Test Engine uses two different threads (one for the main gui, and one for the scenario runner). Your python code will be called from two separate threads, and this breaks the GIL! HelloImGui and ImmApp handle this well by transferring the GIL between threads (from C++). Doing this from pure python seems difficult. |
I ran into this too, #166. Two thoughts:
Regarding the second: just an idea, no idea 1. how needed it is, 2. how useful it is. |
Yes, see 20eecc0
I see no real use case for this. However, I added the possibility to call register_test several times during the app lifetime. |
Ok, thanks for those additions! So the logic would be that, until the patch upstream is in, you'd have to decide whether the test engine should be started or not before run()ing the app. I have not seen any performance issue connected to this, so guess its ok. |
The patch is already upstream |
Ah super! Nice work! |
Hello!
I am tinkering with the recent example for glfw and trying to integrate the test_engine by following the instructions here and here.
I was trying to click the button from the example window via test engine, but ran into some difficulties. When calling
imgui.test_engine.start
, the application freezes.Is there something obvious that I'm missing?
The text was updated successfully, but these errors were encountered: