...
But when executing python code inside GiD, this console does not exists, and thus, this command cannot be used, except when using IDLE shell ( Utilities --> Tools -> Develop -> Console Python… ) .
Python print to file
...
Warning: It seems that tcl’s command update
cannot be called from the IDLE shell window, showing following message ( MS Windows and Linux):
...
But if you click ‘OK’ the code will continue its execution.
Be aware that the command update
is used in several GiD's windows and utilities, so this error message will appear several times.
Note: on macOS tcl’s command update
will cause GiD likely to crash.
And in windows also crash, to avoid it we have modified the source code of Modules\_tkinter.c and recompiled.