X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0bdcd2f50750d235bff2766f3d03d7228aa88dff..ab1f7d2aa9cb1857cf87e105ebbd36a92676bbde:/wxPython/misc/widgetLayoutTest.py diff --git a/wxPython/misc/widgetLayoutTest.py b/wxPython/misc/widgetLayoutTest.py index c9d30ebc0f..862aaeae6b 100644 --- a/wxPython/misc/widgetLayoutTest.py +++ b/wxPython/misc/widgetLayoutTest.py @@ -256,13 +256,15 @@ class LayoutTestFrame(wx.Frame): expr = "w = %s.%s( testPanel, %s )" % (moduleName, className, parameters) self.expression.SetValue(expr) - docstring = "" + docstring = None try: docstring = eval("%s.%s.__init__.__doc__" % (moduleName, className)) except: pass - self.docstring.SetValue(docstring) - + if docstring is not None: + self.docstring.SetValue(docstring) + else: + self.docstring.SetValue("") def OnEnableDestroy(self, evt): evt.Enable(self.testWidget is not None)