[pygtk] Installing and switching themes in pygtk
Johan Dahlin
jdahlin at async.com.br
Thu Feb 16 23:17:40 WST 2006
David Hirschfield wrote:
> I'm a newbie to pygtk and gtk programming in general...so forgive these
> very basic questions:
>
> 1. Where does a person find gtk themes? Is there a good clearing house
> website?
arts.gnome.org
> 2. Do all gtk themes work with pygtk? I would assume so...as long as the
> theme is for the version of gtk and pygtk you're using.
Yes.
> 3. How does one install new gtk themes? Do they have to be installed in
> a specific directory? If so, where?
Extract them in ~/.theme on unix. On windows I do not know.
In gnome there's an interface called gnome-theme-manager which takes
care of doing this for you.
> 4. How can a pygtk program change the gtk theme used to draw itself? Can
> it be done programmatically from within the pygtk program that wants to
> set its theme?
That should not be done, since the user decides the theme, not the application.
For instance, you don't even know if the theme is going to be available
on the system you're running on.
That doesn't stop programs like wingide from trying very hard to support
alternative theming.
But to answer your question, parsing the gtkrc file for the theme should
be enough.
--
Johan Dahlin <jdahlin at async.com.br>
Async Open Source
More information about the pygtk
mailing list