Hi pygtk experts, I want to modify the style of a widget temporarily and reset its default style later. I use modify_text to changed the text color of an entry. How can I reset it later? According to the gtk reference gtk_widget_modify_text(entry, state, NULL) will reset the color to the theme's default. However entry.modify_text(state, None) doesn't work. It complains that None is not a color. Using set_style(None) as suggested in the PythonGtk Tutorial doesn't work either. Styles set with modify_* aren't affected by this. Am I missing something or is the only way to do this in PyGTK to remember the default color somewhere before I modify it?
Thanks in advance, Felix ------------ __\|/__ ___ ___ ------------------------- Felix ___\_e -_/___/ __\___/ __\_____ You can do anything, K�hling (_____\�/____/ /_____/ /________) just not everything [EMAIL PROTECTED] \___/ \___/ U at the same time. _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
