videoLat  2.1
Video conferencing delay measurements
Instance Methods | Class Methods | List of all members
PythonLoader Class Reference

#import <PythonLoader.h>

Inheritance diagram for PythonLoader:
Inheritance graph
Collaboration diagram for PythonLoader:
Collaboration graph

Instance Methods

(PythonLoader *) - init
 Internal: initialize the loader object.
(BOOL) - loadURL:
(BOOL) - loadModule:fromDirectory:
(BOOL) - loadScriptNamed:
(BOOL) - loadPackageNamed:

Class Methods

(PythonLoader *) + sharedPythonLoader
 Singleton pattern.

Detailed Description

Load Python code. Because the Python code runs in the same binary as videoLat it has access to all the objects in the program, through the pyobjc pytho<->ObjC bridge. For an example, see

See also
ArduinoInOut which implements the
HardwareLightProtocol and can then be instantiate in the NIB file and connected to the right objects.

Method Documentation

◆ loadModule:fromDirectory:()

- (BOOL) loadModule: (NSString *)  module
fromDirectory: (NSURL *)  directory 

Load a module from a given directory.

modulethe name of the module to load
directorywhere to load it from
true if successful

◆ loadPackageNamed:()

- (BOOL) loadPackageNamed: (NSString *)  name

Load a Python package from a named resource.

namethe name of the package
true if successful

◆ loadScriptNamed:()

- (BOOL) loadScriptNamed: (NSString *)  name

Load a Python script from a named resource.

namethe name of the script
true if successful

◆ loadURL:()

- (BOOL) loadURL: (NSURL *)  script

Load a Python script.

scriptthe URL of the script to load (must be a local file)
true if successful

The documentation for this class was generated from the following files: