[pygtk] Installing and switching themes in pygtk
David Hirschfield
davidh at ilm.com
Fri Feb 17 00:54:37 WST 2006
Excellent. Thanks for your help!
As for #4, I wouldn't say it "should not be done". If this were a
program to be freely distributed or sold to a mass audience, then it
would be a mistake, absolutely. But the program I'm working on is for a
small audience of known users on a specific installation of one OS, and
I know exactly what's installed and where. The main issue for me was
making sure there were a few themes available for different use
conditions, and that they could be switched between.
Thanks again,
-Dave
Johan Dahlin wrote:
> 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.
>
--
Presenting:
mediocre nebula.
More information about the pygtk
mailing list