Package pyraf :: Module wutil
[hide private]
[frames] | no frames]

Module wutil

source code

Contains python routines to do special Window manipulations not possible in Tkinter. These are python stubs that are overloaded by a c version implementations. If the c versions do not exist, then these routines will do nothing

$Id: wutil.py 791 2007-04-20 14:05:08Z sontag $

Classes [hide private]
  FocusEntity
Represents an interface to peform focus manipulations on a variety of window objects.
  TerminalFocusEntity
Implementation of FocusEntity interface for the originating terminal window
  FocusController
A mediator that allows different components to give responsibility to this class for deciding how to manipulate focus.
Functions [hide private]
 
getWindowID() source code
 
moveCursorTo(WindowID, x, y) source code
 
setFocusTo(WindowID) source code
 
setBackingStore(WindowID) source code
 
getPointerPostion(WindowID) source code
 
getWindowAttributes(WindowID) source code
 
getParentID(WindowID) source code
 
getDeepestVisual() source code
 
initGraphics() source code
 
getScreenDepth() source code
 
getTopID(WindowID)
Find top level X windows ID parent of given window.
source code
 
isViewable(WindowID) source code
 
getTermWindowSize()
return a tuple containing the y,x (rows,cols) size of the terminal window in characters
source code
Variables [hide private]
  closeGraphics = closeXGraphics
  hasXWindow = 0
  platform = sys.platform
  magicConstant = 1074275912
  topIDmap = {}
  terminal = TerminalFocusEntity()
  focusController = FocusController(terminal)
  hasGraphics = None

Imports: struct, fcntl, sys, os, IrafError, IOCTL, termios


Function Details [hide private]

getTopID(WindowID)

source code 

Find top level X windows ID parent of given window. If window is already top (or not implemented), it returns its own ID. If the input Id represents the root window then it will just return itself