Qui, 2004-10-28 �s 22:46 +1000, Nigel Tao escreveu:
> >>How do I get rid of the border?
> >
> >menubar.set_property("shadow-type", gtk.SHADOW_NONE)
> 
> I tried this, and got:
> 
> Traceback (most recent call last):
>   File "./browser-bookmarks-menu.py", line 212, in ?
>     applet_factory(applet, None)
>   File "./browser-bookmarks-menu.py", line 94, in applet_factory
>     menubar.set_property("shadow-type", gtk.SHADOW_NONE)
> TypeError: the object does not support the given parameter
> 
> 
> I poked around for a bit, and tried:
> print menubar.get_property("shadow-type")
> and again got an error:
> TypeError: the object does not support the given parameter
> 
> 
> tried a different method with "style_" in it:
> print menubar.style_get_property("shadow-type")
> and now got:
> <enum GTK_SHADOW_OUT of type GtkShadowType>
> 
> 
> but there is no corresponding style_set_property method.
> 
> 
> Any ideas?  I have gnome-python 2.6.0.

  I'm sorry.  I hadn't noticed it is a style property.  I don't know if
there's any better way, but at least you can use gtk.rc_add_default_file
("/foo/bar/gtkrc.myapplication"), and put the style properties there.
You have to read about rc file syntax in gtk+ documentation.

> 
> tia,
> Nigel.
> 
> _______________________________________________
> 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