Author terry.reedy
Recipients python-dev, terry.reedy, xiang.zhang
Date 2016-09-05.18:07:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473098823.72.0.269052939517.issue27922@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the good detective work.  The flash is always there, somewhere, though sometimes minimal.  SearchBase.open begins with

        if not self.top:
            self.create_widgets()
        else:
            self.top.deiconify()
            self.top.tkraise()

The first and second open()s call the first and second branch.  I am puzzled that the first does not flash, as top is created 'normal' rather than 'withdrawn'.  It also turn out that commenting out either of the two lines stops the flash.

The flash could be prevented by changing 'else' to 'else if not _utest' and adding '_utest' as a parameter and passing True, as I have elsewhere.  However, the purpose of the second open() is to take that branch for near 100% coverage, and I have previously only used _utest to avoid blocking .wait_window calls.

I think I am going to leave this alone for now, but please feel free to comment on other IDLE issues.
History
Date User Action Args
2016-09-05 18:07:03terry.reedysetrecipients: + terry.reedy, python-dev, xiang.zhang
2016-09-05 18:07:03terry.reedysetmessageid: <1473098823.72.0.269052939517.issue27922@psf.upfronthosting.co.za>
2016-09-05 18:07:03terry.reedylinkissue27922 messages
2016-09-05 18:07:03terry.reedycreate