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

OwnerModuleReturns the owner module of the function
Name (Inherited) Returns the name of the object.

Methods

InvokeInvokes 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 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM