Description
Beginning with the Quartus® II software version 2.2, you may receive this error if you use Tk widgets in a Tcl script, because the software does not automatically initialize the Tk toolkit.
To avoid this problem, add the command init_tk at the beginning of any Tcl script that uses Tk widgets