Python3Script Xojo Plugin |
|
Python3XojoModule Class (console safe)
A class to expose Xojo modules to Python 3
Python3Object
Python3XojoModule
class Python3XojoModule
Constructors
Python3XojoModule | A Constructor that constructs Python3XojoModule from name and method count. |
Properties
Name (Inherited) | Returns the name of the object. |
Methods
Examples
Dim xojoModule as Python3XojoModule
If not Python3Script.PythonIsFound() then
MsgBox "Correct Python installation was not found on this machine"
Quit()
else
xojoModule = new Python3XojoModule("Xojo",2)
xojoModule.RegisterFunction("TestHelloFromXojo",AddressOf XojoFunctionsForPython.TestHelloFromXojo)
xojoModule.RegisterFunction("CalculateSomething",AddressOf XojoFunctionsForPython.CalculateSomething)
XojoFunctionsForPython.ModuleHandle = xojoModule
Python3Script.RegisterXojoModule(xojoModule, AddressOf XojoFunctionsForPython.ModuleInit)
Python3Script.Init("TestApp")
end if
Supported Platforms:
MacOS X Cocoa 32 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARM