Package pyraf :: Module irafdisplay :: Class ImageDisplay
[hide private]
[frames] | no frames]

Class ImageDisplay

source code


Interface to IRAF-compatible image display

Instance Methods [hide private]
 
__init__(self) source code
 
readCursor(self, sample=0)
Read image cursor value for this image display
source code
 
_writeHeader(self, tid, subunit, thingct, x, y, z, t)
Write request to image display
source code
 
close(self, os_close=<built-in function close>)
Close image display connection
source code
 
_read(self, n)
Read n bytes from image display and return as string
source code
 
_write(self, s)
Write string s to image display
source code
Class Variables [hide private]
  _IIS_READ = 32768
  _IMC_SAMPLE = 16384
  _IMCURSOR = 16
  _SZ_IMCURVAL = 160
Method Details [hide private]

readCursor(self, sample=0)

source code 

Read image cursor value for this image display

Return immediately if sample is true, or wait for keystroke if sample is false (default). Returns a string with x, y, frame, and key.

_read(self, n)

source code 

Read n bytes from image display and return as string

Raises IOError on failure. If a Tkinter widget exists, runs a Tk mainloop while waiting for data so that the Tk widgets remain responsive.

_write(self, s)

source code 

Write string s to image display

Raises IOError on failure