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
OwnerModule | Returns the owner module of the function |
Name (Inherited) | Returns the name of the object. |
Methods
Invoke | 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 X Cocoa 32 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARM