I'm trying to get a list of windows on gnome2 but this is having an odd
behaviour. Here's the code I came up with so far:

dm = gtk.gdk.DisplayManager()
dm.get_default_display().get_screen(0).get_root_window().get_children()

The results are strange. I don't get all the windows listed, nor the list
appears to change if I open or close some windows and run this snippet
again.
However, sometimes, if I open a new python console the results are
different. I can't understand which criteria is being used.

I tried to inspect the results but with so many attributes and so many
possibilities for many of them, it becomes difficult to know what's what.

What am I doing wrong? what is the above snippet supposed to return?

--
View this message in context: 
http://python.6.n6.nabble.com/Can-t-get-a-list-of-windows-on-gnome-tp4484375p4484375.html
Sent from the Gtk+ - Python mailing list archive at Nabble.com.
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to