Lee Saferite wrote:

>Hello,
>
>   How can you translate this bit of C code into Python PyGTK code? 
>(I'm running the CVS version of PyGTK)
>
>      gdk_property_change(panel->window->window,
>            gdk_atom_intern("_NET_WM_STRUT", FALSE),
>            gdk_atom_intern("CARDINAL", FALSE),
>            32, GDK_PROP_MODE_REPLACE,
>            (gchar *) &wm_strut, 4);
>  
>
Something like:
  window.property_change("_NET_WM_STRUT", "CARDINAL", 32, 
gtk.gdk.PROP_MODE_REPLACE,
       [card1, card2, card3, card4])

Where window is the GdkWindow you want.

>
>   I'm writing a panel to go on the bottom of my screen.  I want to try
>it completly in Python.  I stole this code snippet from the ROX-Filer
>panel.c file.  Any ideas are welcome.
>  
>

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/




_______________________________________________
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