X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0bdcd2f50750d235bff2766f3d03d7228aa88dff..33b7017158309d0ffba37843f99bd7e53265dbc0:/wxPython/misc/widgetLayoutTest.py diff --git a/wxPython/misc/widgetLayoutTest.py b/wxPython/misc/widgetLayoutTest.py index c9d30ebc0f..7a4fada0a7 100644 --- a/wxPython/misc/widgetLayoutTest.py +++ b/wxPython/misc/widgetLayoutTest.py @@ -12,7 +12,7 @@ import os # stuff for debugging print "wx.VERSION_STRING = ", wx.VERSION_STRING print "pid:", os.getpid() -#raw_input("Press Enter...") +##raw_input("Press Enter...") class LayoutTestFrame(wx.Frame): def __init__(self): @@ -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)