Python3Script Xojo Plugin |

# Python3Function Class (console safe)

This class represents a function declaration of a module or class function. The class can be used to invoke a function on class or a module.

Python3Object
Python3Function

class Python3Function

#### Properties

Name (Inherited) (console safe) | Returns the name of the object.
OwnerModule (console safe) | Returns the owner module of the function

#### Methods

Invoke (console safe) | Invokes a Python function.

#### Examples

func = package.GetFunction("TestFunction")
if func <> nil then
result = func.Invoke(nil)
if result <> nil then
else
if Python3Script.ErrorOccurred then
MsgBox Python3Script.GetError()
Python3Script.ClearError()
end if
end if
end if

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit