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: [EMAIL PROTECTED]

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to