I'm doing an explorer explorer of classes in Python. Can I store class methods and attributes with
dir(obj)
and place them in a TreeView. I would like to display the references of this when clicked. For this I would use the
help(obj)
of the class in question. For this I would need the text stored in a String, and thus locate references about it with
String.find(nome_do_atributo)
The problem is, that when I call help (obj), it prints the text in the outuput. Does anyone know how to make help (obj) text stored in a variable, instead of being printed on the system output?