Zac, Unfortunately, the GLUT library which PyMOL currently depends on doesn't give us this information. However, if this really matters to you, then you might be able to write a platform-dependent routine to determine this state information....
Cheers, Warren > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of > Ezequiel Panepucci > Sent: Tuesday, March 02, 2004 11:28 AM > To: PyMOL-users@lists.sourceforge.net > Subject: [PyMOL] detecting focus on the graphics window > > Hello There, > > Anyone knows of a way of detecting if the graphics window has > input focus? > > Thanks much, > Zac > -- > Ezequiel Panepucci, Ph.D. - Laboratory of Prof. Axel Brunger > HHMI - Stanford University > Phone: 650-736-1714 Cell: 650-714-9414 > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with a free > DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users >