Title: Signature.html
Well, the responses above pretty well clear that up. As far as I can tell, the program uses print exactly once. At this point, I have no idea why.  It looks like it's bring to the attention of the user that something has gone wrong finding a centroid. However, the message is so non-descript, it looks useless.

        if total == 0:

            print "Count: %d Total: %d" % (count,total)

            return 361,244,0,0

Possibly it was left behind by mistake. I'll likely know in a few weeks when I tackle the program more fully. In over two years of use, I maybe have seen the message twice. It runs every day for about 10 hours per day. I don't think the program stopped when it was issued.


Kent Johnson wrote:
On Wed, Sep 24, 2008 at 11:36 AM, Wayne Watson
<[EMAIL PROTECTED]> wrote:
  
I'm looking at a GUI application that I hope to modify in the next few
weeks. When it's executed the expected GUI appears along with a DOS window.
Occasionally, I think, I've seen something put in the DOS window. How do I
stop it from appearing and how do I find why it's used?
    

To stop the DOS window from appearing, run the program using pythonw
instead of python. See the section "Running GUI Applications" here:
http://oreilly.com/catalog/pythonwin32/chapter/ch20.html

Kent

  

--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
            
           "Truth is mighty and will prevail. There is nothing wrong
            with this, except that it ain't so."   -- Mark Twain
            
                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to