my 2 cents on the subject of theme switching:
I have an application where I allow the user to switch themes while the
app is running.
(this is using gtk1.2.10)
I do the following:
1) rc_clear_styles()
2) gtk.rc_parse('new gtkrc')
3) change the mod time of 'new gtkrc'
#changing the mod time causes all entries in the hash table to be cleared
4)os.environ['GTK_RC_FILES']='new gtkrc'
5) gtk.rc_reparse_all()
6) for each widget w currently showing, w.reset_rc_styles()
Works for me for every window except my main toplevel.
Mathew
Philippe Gendreau wrote:
>I'd really like to make that work...
>
>I settled for updating just the window theme (it's running full screen
>anyway). I could not find more information than what's in the pygtk
>tutorial (rc_parse('rc file')).
>
>I'd really appreciate it if someone could point me in the direction of some
>docs or programs that make use of this kind of stuff.
>
>My main question now is:
>How do I update the application theme for all present and future widgets?
>
>Thanks again.
>--
>Philippe Gendreau
>_______________________________________________
>pygtk mailing list [EMAIL PROTECTED]
>http://www.daa.com.au/mailman/listinfo/pygtk
>Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
>
>
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/