Posted to tcl by rmax at Tue Nov 08 08:53:15 GMT 2022view raw

  1. package require Tk
  2. update
  3. interp create -safe i
  4. safe::loadTk i
  5. i eval package require Tk

Comments

Posted by rmax at Tue Nov 08 16:02:06 GMT 2022 [text] [code]

Works when the safe interpreter is created with the [safe::interpCreate] command.