|
|
|
|
SynopsisSet the specified window as current. Syntaxcurrent_window( ChipsId ) current_window( "window_id" ) current_window( "all" ) DescriptionThe current_window command sets the window indicated by the argument as the current window; see "ahelp py.chips currency" for general information on currency.
Use the info_current command to retrieve a list of all the current items in the ChIPS session, as shown in Example 1. Example 1chips> id = ChipsId() chips> add_window() chips> add_window( "id=M33") chips> id.window = "win1" chips> current_window(id) chips> print(info_current()) Two windows are created; the second window is current after it is created. The id.window command sets the window value of the ChipsId structure to the first window, which has the id "win1" by default. The current_window command makes that window current. The output of info_current for this session is: Window [win1] Example 2
chips> add_window("id=M31")
chips> add_window()
chips> current_window("M31")Two windows are created. After the second window is created, it is current. The current_window command then sets the first window as the current window. Example 3
chips> add_window("id=M31")
chips> add_window()
chips> current_window("all")Two windows are created. After the second window is created, it is current. The current_window command then makes all windows current. 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. |