Platforms to show: All Mac Windows Linux Cross-Platform
PythonMBS class New in 24.3
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Python | MBS Python Plugin | 24.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
MBS Plugin does some exception handling for you as well as type conversion.
We convert variants to/from python as much as possible, including arrays and dictionaries.
- 4 events
- event Flush
- event FunctionCall(FunctionName as String, Args() as Variant) as Variant
- event Input(Args() as Variant) as String
- event Print(text as String)
- 3 properties
- property Handle as Integer
- property ValueCount as Integer
- property Value(Key as String) as Variant
- 9 shared properties
- shared property ExecPrefix as String
- shared property LibraryError as String
- shared property LibraryVersion as String
- shared property Loaded as Boolean
- shared property Path as String
- shared property Prefix as String
- shared property ProgramFullPath as String
- shared property ProgramName as String
- shared property PythonHome as String
- 10 methods
- method AddCustomFunction(FunctionName as String)
- method AddCustomFunction(FunctionName as String, theDelegate as CustomFunctionCalledMBS)
- method Clear
- method Constructor
- method DeleteValue(Key as String)
- method Evaluate(Expression as String) as Variant
- method HasValue(Key as String) as Boolean
- method Keys as Variant()
- method Run(Script as String) as Variant
- method RunFile(File as FolderItem) as Variant New in 24.4
- 2 shared methods
- delegate CustomFunctionCalledMBS(Args() as Variant) as Variant
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 24.4pr5
- News from the MBS Xojo Plugins Version 24.3
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.3
- Using Python in Xojo
- MBS Xojo Plugins, version 24.3pr3
- MBS Xojo Plugins, version 24.3pr1
Release notes
- Version 24.4
- Added RunFile method to PythonMBS class.
- Version 24.3
- Added Python plugin with PythonMBS class.
The items on this page are in the following plugins: MBS Python Plugin.
PythonExceptionMBS - QCCompositionMBS