Marcus Habermehl wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

Why it isn't possible to get all properties of gtk.Settings()?

These properties are described in the docs (class-gtksettings.html), but
not listed in the module docs.

gtk-button-images
gtk-can-change-accels
gtk-color-palette
gtk-entry-password-hint-timeout
gtk-entry-select-on-focus
gtk-label-select-on-focus
gtk-menu-bar-popup-delay
gtk-menu-images
gtk-menu-popdown-delay
gtk-menu-popup-delay
gtk-scrolled-window-placement
gtk-toolbar-icon-size
gtk-toolbar-style

If I try to get one of this properties, I get a TypeError.

import gtk
settings = gtk.Settings()
prop = settings.get_property("gtk-toolbar-style")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object of type `GtkSettings' does not have property
`gtk-toolbar-style'

These properties are not added to the Settings until a particular widget class is initialized e.g Toolbar for the above case. Create a Toolbar object and the property will become available.

John
_______________________________________________
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