<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m looking at a GUI application that I hope to modify in the next few weeks. When it&#39;s executed the expected GUI appears along with a DOS window. Occasionally, I think, I&#39;ve seen something put in the DOS window. How do I stop it from appearing and how do I find why it&#39;s used?<br>

</blockquote>
<br></div>
If you don&#39;t want the DOS window, you can change the extension of the file to .pyw instead of .py, but in this case you will not see the messages printed by the print statement.<br><font color="#888888">
</font></blockquote><div><br>Not to be pedantic, but that&#39;s NOT a DOS window, it&#39;s a Python terminal.&nbsp; (It just happens to be black-and-white, 80x25 character mode, the same as DOS - but that&#39;s just because DOS was originally designed to use the same monitor as an IBM terminal.)&nbsp; You&#39;d get the same thing under Linux or OS X.<br>
<br>But yes, to amplify what others have said - you can invoke the script with &quot;pythonw script.py&quot;, or just change its extension to &quot;.pyw&quot; and it will automatically be opened with pythonw (assuming that your file associations have been set correctly, which it sounds like they have.)<br>
</div></div>-- <br><a href="http://www.fsrtechnologies.com">www.fsrtechnologies.com</a><br>
</div>