-
Notifications
You must be signed in to change notification settings - Fork 4
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
Post events in non-main thread #1
Comments
Hi Carl,
Interesting! Is it working well for your app? I'd be very interested to hear what type of app you're planning to use it with (if you're allowed to share any details).
A separate thread is used to schedule event posting because I think it simplifies the design. In Qt, all events are processed in the main thread, so if the event posting logic were also in the main thread, I would need to periodically call my event-posting code somehow (possibly extra On a general note: I never polished this code base (hence all the documentation TODO items in the readme). My app is fairly large and complex. In my app, new widgets are frequently created, destroyed, shown, and hidden. The recording and playback system worked reasonably well, but it wasn't quite deterministic to use on a Continuous Integration server, so I ultimately set this whole idea aside and never came back to it. As you can see, getting the whole thing to work at all required a lot of little hacks. Before I wrote this, I always wondered why no one had published such a tool before -- it seems like such an obvious idea. Now I see why. Good luck! If you make any improvements, please consider submitting a PR back to this repo. Best regards, PS -- I have now added a license to this code so that you can use it without any legal concerns. (It's a BSD license, which is compatible with PyQt's |
Hello Stuart, Thanks for your reply. Exactly the determinism issue is hindering to use We are now trying to do all in the mainthread. Can we ask some qestions in the future? I think you have extensive What kind of automatic testing tooling are you using for testing gui Best regards
|
Sorry to hear that. Are you encountering a lot of "Couldn't locate object" errors?
I'd be very interested to see what you come up with!
Of course. I think this thread we have here might be a good place for future discussion, but feel free to email me (bergs -at- janelia.hhmi.org)
At the moment, our UI testing is not great. We have some hand-written tests that call UI functions explicitly (e.g. |
Hello Stuart, We have progress:
We are running a long term test now to see if it deterministic. Later on i will send the files of our solution. Best regards
|
Hello Stuarteberg,
we are using your mechanism. Question: is there are reason why at playback time the events are not posted on the main thread? Now a secondary thread is utilized for that.
Thanks in advance for your answer!
Best regards
Carl.
The text was updated successfully, but these errors were encountered: