tpycl Package

tpycl Package

tpycl Module

class tpycl.tpycl.tpycl[source]

Bases: object

after_callback()[source]

what gets called when the after timeout happens

dprint(*args)[source]

debug print

main(argv)[source]

main loop for the interpreter shell

py_after()[source]

sets the QTimer to call the callback

py_del(instanceName)[source]

deletes a named instance

py_eval(cmd)[source]

evaluated the python command string and returns the result - if the result is a vtk object instance, it is registered in the tcl interp - if the result is a tuple, it is converted to a tcl-style list

py_package(packageName)[source]

imports a vtk-wrapped python package

py_puts(noNewLine, message)[source]

print into the python shell

py_type(string)[source]

return true if the string represents a valid python type such as an int or an instanced variable

py_vtkInstanceName(instance)[source]

make a unique name for an instance using the classname and pointer in hex

Note

Assumes the string form of the instance will end with hex encoding of the pointer. For example: '(vtkImageData)0x2a9a750'

tcl_callback(cmd)[source]

evaluate tcl code string but don’t return the result (only prints error messages)

tcl_eval(cmd)[source]

evaluate tcl code string and return the result - py_package is a special string to import python code into tcl - py_eval goes back from tcl into python

tcl_putenv(key, value)[source]

Set environment variable

usage()[source]

Table Of Contents

Previous topic

teem Module

Next topic

vtkITK Module

This Page