-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Matt Newell schrieb: > On Thursday 09 November 2006 11:48, Andreas Pakulat wrote: >> On 09.11.06 19:51:11, Sebastian Kügler wrote: >>> Can anyone think of some clean way for a PyKDE application to detect idle >>> time? >>> >>> For the Kubuntu powermanager applet, we're currently missing that >>> feature. The usecase would be kicking in a suspend / hibernate / dimming >>> display after N seconds of no mouse or keyboard activity. >> You have to hook into X11 then, I think. > > You need to use the XScreenSaver extension. Attached is a c++ class used by > older psi that i use in one of my projects. I'm not sure but you can > probably achieve the same thing with pure python.
Hi, just a heads up, you might want to look at ctypes if you do stuff like that, no need to write a C extension yourself. Remember, ctypes is stdlib in 2.5. best, Torsten - -- Torsten Marek <[EMAIL PROTECTED]> ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858 Keyserver: subkeys.pgp.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFU5SrfMVFHqJEyFgRAnqPAKCefh718zKM7xpi5tnqvUtnFXoYzgCggDUd XpCxtfxXZPxMWSm6eiLUSlg= =aTtz -----END PGP SIGNATURE----- _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde