<br><br>
<div><span class="gmail_quote">On 1/30/07, <b class="gmail_sendername">Peter Drake</b> &lt;<a href="mailto:drake@lclark.edu">drake@lclark.edu</a>&gt; wrote:</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I tried running this directly from a terminal:<br><br>#!/usr/local/bin/python<br>from Tkinter import *<br>
c = Canvas()<br>c.pack()<br>c.create_line(0, 0, 20, 30)<br>mainloop()<br><br>Again, the Tk window pops up behind the terminal.</blockquote>
<div>&nbsp;</div>
<div>c = Canvas() already creates a Tk window, but it&#39;s not active or in front.</div>
<div>&nbsp;</div>
<div>Is there a problem with minimizing the command window or moving </div>
<div>it out of the way after mainloop()?&nbsp; With your mouse I mean?&nbsp; Control </div>
<div>should return to terminal when you exit Tk mainloop.</div>
<div>&nbsp;</div>
<div>In terms of launching mytkinter.py directly from an icon, no command </div>
<div>window, there oughta be a way on Mac.</div>
<div>&nbsp;</div>
<div>Kirby</div>
<div>&nbsp;</div>