pyworkflow.viewer module¶
-
class
pyworkflow.viewer.
CommandView
(cmd, **kwargs)[source]¶ Bases:
pyworkflow.viewer.View
View for calling an external command.
-
class
pyworkflow.viewer.
MessageView
(msg, title='', msgType=0, tkParent=None, **kwargs)[source]¶ Bases:
pyworkflow.viewer.View
View for some message.
-
class
pyworkflow.viewer.
ProtocolViewer
(**kwargs)[source]¶ Bases:
pyworkflow.protocol.protocol.Protocol
,pyworkflow.viewer.Viewer
Special kind of viewer that have a Form to organize better complex visualization associated with protocol results. If should provide a mapping between form params and the corresponding functions that will return the corresponding Views.
-
class
pyworkflow.viewer.
TextView
(filelist, title='', tkParent=None, **kwargs)[source]¶ Bases:
pyworkflow.viewer.View
View for display some text file.
-
class
pyworkflow.viewer.
View
[source]¶ Bases:
object
Represents a visualization result for some object or file. Views can be plots, table views, chimera scripts, commands or messages.
-
class
pyworkflow.viewer.
Viewer
(tmpPath='./Tmp', **args)[source]¶ Bases:
object
A Viewer will provide several Views to visualize the data associated to data objects or protocol.
The _targets class property should contain a list of string with the class names that this viewer is able to visualize. For example: _targets = [‘Image’, ‘SetOfImages’]
-
errorList
(errors, views, title='Visualization errors')[source]¶ Convert an error list in a single Error message.
-
getView
()[source]¶ This method should return the string value of the view in web that will respond to this viewer. This method only should be implemented in those viewers that have WEB_DJANGO environment defined.
-