PythonScript Xojo Plugin

PythonXojoModule Class (console safe)

A class to expose Xojo modules to Python

PythonObject
   PythonXojoModule

class PythonXojoModule

Constructors

PythonXojoModuleA Constructor that constructs PythonXojoModule from name and method count.

Properties

Name (Inherited) (console safe) Returns the name of the object.

Methods

AddClass (console safe) Adds a class to the module.
RegisterFunction (console safe) Registers a Xojo function to expose to Python via this module

Examples

PythonScript.Init("TestApp")

Dim xojoModule as PythonXojoModule

xojoModule = new PythonXojoModule("Xojo",2)
xojoModule.RegisterFunction("TestHelloFromXojo",AddressOf XojoFunctionsForPython.TestHelloFromXojo)
xojoModule.RegisterFunction("CalculateSomething",AddressOf XojoFunctionsForPython.CalculateSomething)

PythonScript.RegisterXojoModule(xojoModule)

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