Il 26/10/2016 13:16, jmp ha scritto:
[...]
I suggest you write a GUI that make synchronous calls to a remote
application, if possible. If the remote app is in python, you have
access to remote protocols already written for you, Pyro is one of them,
you can skip the low level communication part.
I'm not sure Pyro (or similar alternatives) helps in my case.
The real problem is that retrieving status from remote device is a slow
operation. If the GUI thread blocks waiting for the answer, the GUI
blocks and the user complains.
From Pyro documentation:
---
Normal method calls always block until the response is returned. This
can be any normal return value, None, or an error in the form of a
raised exception. The client code execution is suspended until the
method call has finished and produced its result.
---
So, even with Pyro, I need to have another thread that manages Pyro
communication (instead of serial communication)... additional problems.
--
https://mail.python.org/mailman/listinfo/python-list