[pygtk] WNCK question
Matthias Bläsing
matthias.blaesing at rwth-aachen.de
Tue May 23 02:17:55 WST 2006
Am Montag, den 22.05.2006, 18:04 +0100 schrieb Magnus Therning:
> [Problem with wnck not updating without gtk.main]
>
> Hmm, that's a bit irritating. I was hoping to be able to call
> gtk.main_iteration(0) to trigger that update to be done, but it doesn't
> seem to work:
> I'm looking to writing a command line tool that does some window
> manipulation, based on command line arguments, and then exits. Is there
> a way around having to call gtk.main()?
how about:
import wnck
import gtk
scr = wnck.screen_get_default()
while gtk.events_pending():
gtk.main_iteration()
scr.get_windows()
HTH
Matthias
--
Matthias Bläsing (GPG-Schlüsselkennung: A71B4BD5)
ICQ: 84617206 AIM: linuxfun81 MSN: linuxfun at hotmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060522/c88b7b3f/attachment.pgp
More information about the pygtk
mailing list