Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

will show a GiD window with the value of the variable a

Note: tcl = tohil.import_tcl() is a tohil module command that uses Tcl’s introspection capabilities to create Python object functions for each tcl proc and command, so that calling the Tcl procs looks very much like calling any Python function.

But the Python functions created depends on the procs existing when tohil.import_tcl() is invoked. If the proc W is already not defined in Tcl during this call, the function tcl.W() won’t exists!!

And the proc W is not defined initially. If a command is called but doesn’t exists, Tcl try to load its source file (based on the content of the tclIndex file that maps procs and filenames)