Various minor tweaks and updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-05-05 04:17:27 +00:00
parent c15521c67e
commit daa3eac94c
11 changed files with 70 additions and 12 deletions

View File

@@ -154,7 +154,9 @@ def getCallTip(command='', locals=None):
else: # Drop the first argument.
argspec = '(' + ','.join(temp[1:]).lstrip()
tip1 = name + argspec
doc = inspect.getdoc(object)
doc = ''
if callable(object):
doc = inspect.getdoc(object)
if doc:
# tip2 is the first separated line of the docstring, like:
# "Return call tip text for a command."