PythonXojoModule Class (console safe)
A class to expose Xojo modules to Python
PythonObject
PythonXojoModule
class PythonXojoModule
Constructors
PythonXojoModule | A 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 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARM