[pygtk] try/except won't trap DeprecationWarning from OptionMenu

Paul Pogonyshev pogonyshev at gmx.net
Thu Jan 22 02:14:37 WST 2009


Alessandro Dentella wrote:
>   I'd like to use deprecated OptionMenu, but I can't stop the
>   DeprecationWarning. Why is it different from a self produced one?

It is not different.  Please see the 'warnings' module.  Last time I
checked the warnings filters described there could be used to suppress
warnings from PyGTK as well.

Paul



More information about the pygtk mailing list