[pygtk] Properties of gtk.Settings()

Marcus Habermehl bmh1980de at yahoo.de
Wed Aug 8 22:04:10 WST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Finlay schrieb:
> 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.

Ah okay, tested with gtk.Toolbar().

Now I must create a gtk.Menu() to get the gtk-menu-*, a gtk.Label() to
get the gtk-label-*, a gtk.ScrolledWindow() to get the
gtk-scrolled-window-* and a gtk.Entry() to geht the gtk-entry-*
properties. Right?

But what is the corresponding widget for gtk-button-images?
gtk.Button()? Or for gtk-can-change-accels and gtk-color-palette?

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

iD8DBQFGuc1a6QtJuHAzSHYRAmOJAJ4x1KehbnDqpYuvTc9P9E3kdPRRIgCgvLF8
F0tNPypNADJ0bHmzHXL8qMc=
=a/uj
-----END PGP SIGNATURE-----


More information about the pygtk mailing list