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

Module gwm

source code

Graphics window manager, creates multple toplevel togl widgets for use by python plotting

$Id: gwm.py 678 2005-07-01 21:19:43Z perry $

Classes [hide private]
  GWMError
  GraphicsWindowManager
Proxy for active graphics window and manager of multiple windows
  kernel
Tkplot graphics kernel implementation
Functions [hide private]
 
getGraphicsWindowManager()
Return window manager object (None if none defined)
source code
 
window(windowName=None)
Create a new graphics window if the named one doesn't exist or make it the active one if it does.
source code
 
delete(windowName=None)
Delete the named window (or active window if none specified)
source code
 
getActiveWindowName()
Return name of active window (None if none defined)
source code
 
getActiveWindow()
Get the active window widget (None if none defined)
source code
 
getActiveGraphicsWindow()
Get the active graphics kernel object (None if none defined)
source code
 
getActiveWindowTop()
Get the top window (None if none defined)
source code
 
raiseActiveWindow()
Deiconify if not mapped, and raise to top
source code
 
resetFocusHistory()
Reset focus history after an error occurs
source code
Variables [hide private]
  kernelname = os.environ ['PYRAFGRAPHICS'].lower()
  _g = None

Imports: string, wutil, Tkinter, gki, os, gkiopengl, gkitkplot


Function Details [hide private]

window(windowName=None)

source code 

Create a new graphics window if the named one doesn't exist or make it the active one if it does. If no argument is given a new name is constructed.