On Tue, 2005-05-10 at 06:38 +0000, Susant Kumar Padhi wrote:
> Thankx Christian,
> 
> It Works fine. 
> Again I am trying to translate following code in to the Pygtk. but
> dont know how to get the Window ID. I searched a lot in PyGtk document
> for a GDK_WINDOW_XID macro but there is no such function.
> 
> Can any body help me to convert following code in to Python.
> 
> 
> ---------------------------------------
> atom = gdk_atom_intern ("VES_DESKTOP_WINDOW", FALSE);
> xid = GDK_WINDOW_XID (win->window);
> 
>           
> gdk_property_change (gdk_get_default_root_window (),
>                         atom,
>                         gdk_atom_intern ("WINDOW", FALSE), 32,
>                         GDK_PROP_MODE_REPLACE, (guchar *) & xid, 1);
> 
> -----------------------------------
> 

import gtk

VES_DESKTOP_WINDOW_ATOM = gtk.gdk.atom_intern("VES_DESKTOP_WINDOW")
WINDOW_ATOM = gtk.gdk.atom_intern("WINDOW")
root = gtk.gdk.screen_get_default().get_root_window()
root.property_change(VES_DESKTOP_WINDOW_ATOM,
                     WINDOW_ATOM, 32,
                     gtk.gdk.PROP_MODE_REPLACE,
                     [win.window.xid])


> thanx
> Susant  
> 
> 
> 
> 
> Susant Kumar Padhi
> 
> 
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Gustavo J. A. M. Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
The universe is always one step beyond logic.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
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