From 186e869e8199a820593458271e46aa19951f2b48 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 11 Mar 2003 21:39:47 +0000 Subject: [PATCH] SWIGged updates for wxMSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/msw/wx.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wxPython/src/msw/wx.py b/wxPython/src/msw/wx.py index 0651bebe47..c4fb2ba6c1 100644 --- a/wxPython/src/msw/wx.py +++ b/wxPython/src/msw/wx.py @@ -1609,6 +1609,12 @@ class _DeprecatedNonBool: import warnings warnings.warn("Use Python's %s instead" % self.__txt, DeprecationWarning, 3) 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')