Author terry.reedy
Recipients serhiy.storchaka, terry.reedy
Date 2017-09-17.17:47:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505670447.25.0.688854446127.issue31496@psf.upfronthosting.co.za>
In-reply-to
Content
Are you running on Linux or Mac?  What tk version?

About the 'invalid command name' message: PR3622, patching idlelib.codecontext, merged to master 13 hours ago, fixed this for me on Windows.  (It added CodeContext.__del__.)  Did it fail on your machine or was it not yet merged on your machine?

About the test failure.  Hs is a Text with about 14 lines.  The test initially executes
        hs.see(1.0)
        hs.update_idletasks()
hs.bbox(start) means that the tag start is not visible,  which should realistically not be possible.  But a quick web search suggests there have been problems with HiDPI and tk, and hence tkinter.

I am curious what value of start fails.  Could you run once with 'print(start)' added above bbox(start)?

Does inserting the following just before hs.bbox(start) fix the issue?
        hs.see(start)
        hs.update_idletasks()
If not, we can skip.  Does the following print one or multiple skip messages?
        try:
            x, y, dx, dy = hs.bbox(start)
        except TypeError:
            self.skipTest(f'bbox failure with start {start}')
History
Date User Action Args
2017-09-17 17:47:27terry.reedysetrecipients: + terry.reedy, serhiy.storchaka
2017-09-17 17:47:27terry.reedysetmessageid: <1505670447.25.0.688854446127.issue31496@psf.upfronthosting.co.za>
2017-09-17 17:47:27terry.reedylinkissue31496 messages
2017-09-17 17:47:26terry.reedycreate