how to get root window destop background

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

how to get root window destop background

徐伟雄
now I was using these code to get the destop background:
        rootWindow = gtk.gdk.get_default_root_window()
        width, height = rootWindow.get_size()
        pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, width, height)
        desktopBackground = pixbuf.get_from_drawable(
        rootWindow, rootWindow.get_colormap(), 0, 0, 0, 0, width, height)
But it was so slower for me, does has any else method to get the destbackground?
can anyone help me .Thanks.

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