Tk Source Code

View Ticket
Login
Ticket UUID: 224002
Title: On Win32, Tk console is always covered at startup
Type: Bug Version: final: 8.2.3
Submitter: ioi Created on: 2000-12-01 01:23:58
Subsystem: 68. Win Window Operations Assigned To: ioilam
Priority: 3 Low Severity:
Status: Closed Last Modified: 2002-03-23 09:05:21
Resolution: Wont Fix Closed By: hobbs
    Closed on: 2002-03-23 02:05:21
Description:
After you install wish, run it from the start-menu. Both the . window and the tk console are shown, with the console covered by the . window. This obscures the view of the console and makes it difficult to type into the console.

Plus, at this point, if you click on the body if the console, it will not raise the console to the top of the . window. You have to click on the title bar of the console.
User Comments: hobbs added on 2002-03-23 09:05:21:
Logged In: YES 
user_id=72656

I believe this has a sufficient work-around, and is really 
correct in that the . window is supposed to be the "active" 
window when starting Tk.

dkf added on 2000-12-08 18:02:35:
You could also add the following to your wishrc.tcl file:
    console eval { after 100 raise . }

hobbs added on 2000-12-08 05:10:00:
Personally I just use a wishrc.tcl that contains:

wm geometry . +50+450
console eval { wm geometry . +50+50 }

Although I agree that a general solution is better.  You just have to make sure that whereever the console pops up, the . window is OK as well.