-
Notifications
You must be signed in to change notification settings - Fork 12
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
Slot running in IOLoop thread crash #23
Comments
I believe that the signal should be emitted from a Qthread. So there must I have issues of the same kind, so i have a qt dependent part of pizco
|
I have +in mind
|
Can you post a gist with the minimal code that crashes. I think that Pierre is right but it will be nice to check. |
Here are a few relevant links to our problem : http://trevorius.com/scrapbook/python/binding-singals-dynamically/ http://abstractfactory.io/blog/dynamic-signals-in-pyqt/ It appears that the Qthread's signal should have a generic (list,dict) I would be please to have the code, but I don't have the time yet. 2014-08-22 8:26 GMT+02:00 Hernan Grecco notifications@github.com:
|
I solved it for now by having a model class (subclassed from QObject) that receives the pizco proxy calls, stores the data and re-emits as pyqtSignals. This solves the mainthread GUI update problem. The model is mostly boilerplate code (getters/setters), so it probably can be solved from pizco side for most common use cases. I'll see about providing a simple test-case. |
I would be great to incorportate this and pizco-utils in the master as soon as you feel confortable with it. My only request is that Pizco does not require PyQt (nor PySide). But I am happy to add utilities that help to make good use of it if present. |
yep I understand the need to not need pyqt :) i have allready some pseudo 2014-08-25 8:05 GMT+02:00 Hernan Grecco notifications@github.com:
|
Hello for info : https://github.com/PierreBizouard/pizco-utils/blob/master/pizcoutils/signal_resync.py The tests requires some exotic but nice packages to run (guiqwt) It also solves the dynamic qt signal creation issue |
I have a PyQt5 app which is connecting with signals through Pizco, and I am getting crashes when trying to update a progress bar.
Inspecting the current_thread inside the slot call, it shows:
I am connecting the signals as shown in the example app. Updating QLabels do not cause a crash, but I am guessing it should actually be all run from the main thread.
What is the correct way here? Should I have a model that is updated by the IOLoop thread by the proxy signals, and then connect GUI slots to it so it runs from the main thread?
The text was updated successfully, but these errors were encountered: