diff --git a/wxPython/src/gtk/wx.py b/wxPython/src/gtk/wx.py index 43827b38a2..7c619bf625 100644 --- a/wxPython/src/gtk/wx.py +++ b/wxPython/src/gtk/wx.py @@ -1605,7 +1605,10 @@ class _DeprecatedNonBool: return self.__val def __nonzero__(self): return self.__int__() - + def __repr__(self): + if self.__val: text = "True" + else: text = "False" + return "_DeprecatedNonBool: %s" % text TRUE = true = _DeprecatedNonBool(True, 'True') FALSE = false = _DeprecatedNonBool(False, 'False')