Welcome to iraf.net Tuesday, May 21 2024 @ 12:53 PM GMT
mo0713 |
05/13/2011 08:12PM (Read 2636 times)
|
|
|
Status: offline
Registered: 05/13/2011
Posts: 6
|
I would like to ask suggestions about a problem that I have on the focuisng of interactive window under pyraf on Mac. My working environment is Mac OS X 10.6.7, iraf 2.14.1, stsci_python 2.11, and STSDAS/TABLES 3.13. When I use onedspec.splot under pyraf, there is a problem on focusing. For example, if I try to change the range (y-max) of the plot by typing 'w'+'t' on the interactive window of the pyraf, the focus of the window goes out just after typing 'w' and I have to click the window to get the focus back. Then after typing 't', the focus goes out again. It is quite annoying behavior for me that I have to click the window after any typing of the key on the interactive window. It does not happen when I use iraf cl. So I first thought it's a problem of pyraf and have already asked stsci helpdesk about that. They said that splot is not a core of the pyraf and not supported by stsci and it might be able to find help in the forums here. They also suggested to check if I made specific setting on X11, but I did not make anything from default. The problem appears both default X11 and the latest XQuartz. Also it does not happen on Linux system when I used pyraf on Linux before. Does anybody know how to keep focus on the interactive window of splot under pyraf? I have to use pyraf to reduce my data as the pipeline is made based on python and pyraf.
|
|
|
|
fitz |
05/13/2011 08:12PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
While it's true SPLOT is not core Pyraf functionality, pyraf implements its own graphics system to render plots, read the cursor, etc, even up to the point of manipulating the window focus as needed. See e.g.http://stsdas.stsci.edu/pyraf/doc.old/pyraf_tutorial/PyRAFGraphics.htmlwhere it states:[quote:116944f0c8]
PyRAF attempts to manipulate the window focus and the cursor location in a sensible way. For example, if you start an interactive graphics task, the mouse position and focus are automatically transferred to the graphics window. If the task does not appear to be responding to your keyboard input check to see that the window focus is on the window expecting input.[/quote:116944f0c8]This is certainly not an IRAF issue, your best bet is to go back to ST if you don't get a firm reply here. Note this bug seems to have been reported to them before: https://trac6.assembla.com/pyraf/ticket/111That said, you can set focus-follows-mouse policy for the Terminal.app and X11 apps using the commands[code:1:116944f0c8]
% defaults write com.apple.Terminal FocusFollowsMouse -string YES
% defaults write com.apple.x11 wm_ffm true
[/code:1:116944f0c8]The XQuartz pyraf window would need to implement something similar.
|
|
|
|
mo0713 |
05/13/2011 08:12PM
|
|
|
Status: offline
Registered: 05/13/2011
Posts: 6
|
thanks for the comments, fits! After one more iteration with STScI helpdesk, I finally figured out that I've compiled stsci_python with gcc and python from MacPorts that I'm preferentially using for python libraries etc. After I build stsci_python with gcc and python from Apple's Xcode, Mac native interactive window arises and there appears no focus problem.
|
|
|
|
| |
|
Content generated in: 0.14 seconds |
|