Python3Script Xojo Plugin |

# Python3XojoClass.SetToStringFunction Method (console safe)

Optionally sets str function for your class which gets used by the Python str() operator.

SetToStringFunction(
fuction as Ptr)

#### Parameters

fuction
  Address of the str function.

#### Remarks

Signature of the the callback function must be like:
SomeName(pySelf as Ptr) as Ptr
Where SomeName can be anything you want.
See example use in the example project called: “Xojo creating new Python class (Advanced)”.

#### See Also

Python3XojoClass Class