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 1232 2010-07-02 21:14:20Z sontag $
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getTermWindowSize()
return a tuple containing the y,x (rows,cols) size of the terminal
window in characters |
source code
|
|
|
|
WUTIL_ON_MAC = False
|
|
|
WUTIL_ON_WIN = False
|
|
|
WUTIL_USING_X = True
|
|
|
_skipDisplay = False
|
|
|
_hasAqua = 0
|
|
|
_hasXWin = 1
|
|
|
platform = 'linux2'
|
|
|
magicConstant = 21523
|
|
|
topIDmap = {}
|
|
|
terminal = TerminalFocusEntity()
|
|
|
focusController = FocusController(terminal)
|
|
|
hasGraphics = True
|
|
|
__package__ = 'pyraf'
|
|
|
isGwmStarted = 1
|
Imports:
struct,
sys,
os,
fcntl,
drawCursor,
setBackingStore,
getWindowAttributes,
getDeepestVisual,
capable,
closeGraphics,
aqutil,
getFocalWindowID,
setFocusTo,
getParentID,
moveCursorTo,
getPointerPosition,
IOCTL,
termios,
closeXGraphics,
initXGraphics
|
Find top level 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
|
|
This is used to make sure that a window which just popped up is
actually in the front, where focus would be. With X, any new window
comes to the front anyway, so this is a no-op. Currently this is only
necessary under Aqua.
|