5
I’m doing a Python class explorer. I can 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 text of
help(obj)
of the class in question. For this you would need the text stored in a String, and so locate the references on this one with
String.find(nome_do_atributo)
The problem is, when I call help(obj), it prints the text in outuput. Does anyone know how to have the help(obj) text stored in a variable, instead of being printed in the system output?