[pygtk] Properties of gtk.Settings()

Marcus Habermehl bmh1980de at yahoo.de
Tue Aug 7 23:41:06 WST 2007


-----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'

Greetings
Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGuJKS6QtJuHAzSHYRApAlAJwKWpthJSnitRhymUTFcDHRPuZgnACfXkSD
0GhrXnsnX545XZ7NUfqyxJQ=
=vMei
-----END PGP SIGNATURE-----


More information about the pygtk mailing list