Version 1 of console - work with the parent window

Updated 2013-01-15 17:54:06 by Zipguy

Zipguy - You can find out my email address by clicking on Zipguy.

I've been thinking about How do you make two windows act as one?, and I started wondering about having the Console work with the parent window (the same as described in that article when minimizing/restoring them).

I noticed the command used in console -font? which was

    console eval { font configure TkConsoleFont -size 10 }

and thought what if I put the commands

        bind . <Unmap>      { console eval { wm iconify    .console}  }
        bind . <Map>        { console eval { wm deiconify .console}  }

into the code of the application that brought up the console with a button (named "Console"). So I did. That caused the application to produce an error message like this about thirty+ times:

http://www.geocities.ws/thezipguy/misc/error001.png

and when you hit the Detail button:

http://www.geocities.ws/thezipguy/misc/error002.png

I knew it was not a toplevel window. I tried to make it one, but that still failed. I'm looking into Tkcon which may have a toplevel window, or other things to do what I want.

Any ideas on what I should do to get the Console to work with the parent window? Any help would be great!.