Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

window focusing of onedspec.splot on mac with pyraf

 
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF
View previous topic :: View next topic  
Author Message
mo0713



Joined: 13 May 2011
Posts: 4

PostPosted: Fri May 13, 2011 8:12 pm    Post subject: window focusing of onedspec.splot on mac with pyraf Reply with quote

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.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sat May 14, 2011 8:04 pm    Post subject: Reply with quote

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.html

where it states:

Quote:

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.


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/111

That said, you can set focus-follows-mouse policy for the Terminal.app and X11 apps using the commands

Code:

% defaults write com.apple.Terminal FocusFollowsMouse -string YES
% defaults write com.apple.x11 wm_ffm true


The XQuartz pyraf window would need to implement something similar.
Back to top
View user's profile Send private message
mo0713



Joined: 13 May 2011
Posts: 4

PostPosted: Wed May 18, 2011 1:13 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.21 seconds