SardanaInfoViewer

The SardanaInfoViewer opens a text widget displaying the output sent to the info stream. The idea is to capture the informational output produced by macros in a dedicated widget.

The InfoViewer server can be launched from a Unix shell

p10user@haspp10e2:~/temp$ SardanaInfoViewer.py &

or from spock:

p10/door/haspp10e2.01 [2]: ! SardanaInfoViewer.py &

The output displayed in figure 7.6 has been produced by this macro:

#!/usr/bin/env python
from sardana.macroserver.macro import Macro, Type
class infoTest(Macro):
      param_def = []
      def run(self):
          self.info("this line of text is sent self.info()")

Figure 7.10: The SardanaInfoViewer
\includegraphics[width=14.8cm]{infoviewer.ps}



2019-11-13