Calling setModel on a TaurusImageDialog raises an exception if the device is not started.
taurus\qt\qtgui\extra_guiqwt\builder.py
Lines 134 -137:
if Attribute(taurusmodel).read().type == DevEncoded:
image = TaurusEncodedImageItem(param)
else:
image = TaurusImageItem(param)
The line responsible for this behavior is line 134. It tries to read the attribute and fails.
I don’t know if there’s a different way to check the attribute type.
You are right.
We will probably have to handle this case and redo this check when we get an event that the Attribute is alive.
Last edit: Carlos Pascual 2014-02-15
Ticket moved from /p/sardana/tickets/93/
Can't be converted: