|
|
|
|
SynopsisCreates a window. Syntaxadd_window( [ChipsId,] [,attributes]) add_window( [ChipsId,] width, height, units [,attributes] ) Description
The add_window command creates a window whose attributes are specified by user preferences or in an attribute list. The new window becomes current by default; providing a ChipsId overrides the currency state. Customizing the WindowThere are several attributes that control the window characteristics. The attributes can be set to the ChIPS defaults, values provided in the add_window command, or values from the user's preference file. The attributes may also be modified with the set_window command at any time; see "ahelp py.chips set_window" and "ahelp py.chips setget" for more information. The attributes associated with windows are:
Example 2chips> settings = ChipsWindow() chips> settings.bg.color = 'blue' chips> settings.width = 8.0 chips> settings.height = 10.0 chips> settings.units = 'centimeters' chips> add_window(x, y, settings) Populate the "settings" structure with the attribute values, then add a window. Example 3chips> add_window(["bgcolor", "navy", "id", "Figure1"]) Add a window, specifying the attribute values in a list. BugsSee the bugs pages on the ChIPS website for an up-to-date listing of known bugs. |
![]() |
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA. Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2004. All rights reserved. |