Versions Compared

Key

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

...

Python show text with W

If Pyhton Python is running in GiD then can call the Tcl GiD procedure called W that show text in a window

...

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

Python force reload a file

Using our Tcl command GiD_Python_Import_File (that do tohil::import) will import a module in Python,

but if we are developing and modify the .py file doing a new import don’t refresh the code in the interpreter.

A trick to do it it to use the Tcl command GiD_Python_Source,then the new code of the file is used without need to restart GiD.

In fact it seems that this is similar to use in Python the function reload of the importlib module

...

languagepy

...