| Seed Modules Reference Manual |
|---|
Below are several examples of using the Seed Sandbox module. For additional resources, consult the examples/ folder of the Seed source
Example 4.
sandbox = imports.sandbox;
ctx = new sandbox.Context();
ctx.eval("b = 2+2");
Seed.print(ctx.global.b); //4
ctx.global.b = new Gtk.Window(); // Possible to expose objects to the context.
ctx.eval("b.show()");