Display Objects as Strings
These functions will return an object as a string that shows each of the object's member variables. They're nice to use if you want to print any Python object, not just PySimpleGUI ones.
obj_to_string
Dumps an Object's values as a formatted string. Very nicely done. Great way to display an object's member variables in human form
Parameter Descriptions
| Name | Type | Default | Description |
|---|---|---|---|
| extra | str | extra stuff (Default value = ' ') | |
| obj | Any | The object to display | |
| RETURN | str | Formatted output of the object's values |
obj_to_string_single_obj
Dumps an Object's values as a formatted string. Very nicely done. Great way to display an object's member variables in human form Returns only the top-most object's variables instead of drilling down to dispolay more
Parameter Descriptions
| Name | Type | Default | Description |
|---|---|---|---|
| obj | Any | The object to display | |
| RETURN | str | Formatted output of the object's values |