Python3Script Xojo Plugin

Python3Module Class (console safe)

A class that represents a Python 3 module.


class Python3Module


Name (Inherited) Returns the name of the object.


BooleanFieldGets or sets a boolean field on the module
DeleteAttributeDeletes attribute from the Python module.
DoubleFieldGets or sets a double field on the module
GetClassGets a class declaration by name from the module
GetFunctionGets a function by name from to execute from the class module.
HasAttributeChecks if the module has attribute with a given name
Int32FieldGets or sets a Int32 field on the module
Int64FieldGets or sets a Int64 field on the module
ObjectFieldGets or sets a object field on the module. Object field here means that Xojo or Real Studio object gets stored in a Python script
ReloadReloads same module again if it has changed for example. Python caches the modules so loading it again in same way as the first time would not work.
StringFieldGets or sets a string field on the module
UInt64FieldGets or sets a UInt64 field on the module


You can get instances of this class by calling Python3Script.GetModule


package = Python3Script.GetModule("OurModule")

if package <> nil then
    // OurModule loaded
    // OurModule did not load
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