ade.image.ImageViewer(object)
class documentation
Part of ade.image
(View In Hierarchy)
I spawn an image viewing process that shows the plot file whose path is specified in my constructor.
Leaves a file with a '.pid' extension after the image filename in the image directory. If a previous run of this code spawned an image viewing process and that process PID is still running, does not spawn a new one.
Complains to the messenger if no suitable image viewer is found or there
is an error, unless the noComplain constructor keyword is set
True
.
TODO: Make this work on inferior operating systems. There is a version of pqiv compiled for Windows.
Class | IV_Protocol | Undocumented |
Method | pidFilePath | Undocumented |
Method | __init__ | ImageViewer(filePath, noComplain=False) |
Method | processRunning | Returns True if there is a process running with the PID
record in a file at my pidFilePath. |
Method | savePID | Saves the supplied integer PID to a file that is at my pidFilePath. |
Method | spawnViewer | Spawns the first available image viewer specified in my exList. |
Method | termViewer | Undocumented |
Method | _startNotifier | Undocumented |
Method | _stopNotifier | Undocumented |
Returns True
if there is a process running with the PID
record in a file at my pidFilePath.