Version 3 of Opening a window that duplicates the program we're on

Updated 2009-11-04 03:17:54 by AMG

Steven, November 3rd 2009

Hi. I am in a TCL app and I'd like a second copy of the program to open and to run in a window. Is this possible, is this advisable? If so, how can this be done? The app is Notebook written by Bill Duquette. Thanks for the info.

AMG: One method: use exec. To run the second program in the background (i.e. not have the first wait for the second to terminate), give & as the last argument to exec.

Another method: check if the program supports multiple "logical instances" within a single process. If it keeps its state in global variables, it probably does not. But if it was designed to be used as a megawidget, it probably does. If multiple instances are possible, create a new toplevel and put it in there. Thanks to his Snit experience, WHD is more likely than most to design his programs as megawidgets. :^)