Posted: Fri May 13, 2011 8:12 pm Post subject: window focusing of onedspec.splot on mac with pyraf
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.
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.
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.
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.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum