This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients markroseman, taleinat, terry.reedy
Date 2018-06-13.04:47:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528865244.15.0.947875510639.issue2053@psf.upfronthosting.co.za>
In-reply-to
Content
I would rather leave this open for the moment as an information resource.  I wrote query.py with a base class and subclasses to standardize asking users for input.  So some of the patch may be obsolete, but it does have a catalog of popup uses.

The patch consistently replaces tkMessagebox.showerror with widget.showerror.  I have done that in several places, although widget.showerror may just be messagebox.showerror.  At least some of my motivation was making testing easier, by adding a mock to the test instance instead of temporarily monkeypatching messagebox.  If a custom Showerror class were defined in, for instant, query.py, "self.showerror = tkMessagebox.showerror" could easily be replaced by "self.showerror = query.Showerror.

I also have some interest in consistently handling focus in response to key presses.  (There was recently a request for this on idle-dev.)
History
Date User Action Args
2018-06-13 04:47:24terry.reedysetrecipients: + terry.reedy, taleinat, markroseman
2018-06-13 04:47:24terry.reedysetmessageid: <1528865244.15.0.947875510639.issue2053@psf.upfronthosting.co.za>
2018-06-13 04:47:24terry.reedylinkissue2053 messages
2018-06-13 04:47:23terry.reedycreate