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 taleinat
Recipients kbk, taleinat
Date 2008-02-09.00:10:19
SpamBayes Score 0.0054407106
Marked as misclassified No
Message-id <1202515821.86.0.159216664847.issue2053@psf.upfronthosting.co.za>
In-reply-to
Content
In many places in the code, tkMessageBox dialogs were being used
directly, with the master (parent) widget being set explicitly to the
EditorWindow's text widget. Only in some cases was the focus being set
to the text widget afterwards, although in most this is the Right Thing
To Do.

This patch adds a decorator which wraps a tkMessage box (or similar)
function to use the EditorWindow's text widget as a parent by default
and set focus back to it afterwards. This is used to wrap the showerror
and ask* methods. It also changes the code to use these methods wherever
appropriate.

All in all, the change in functionality is that the dialogs' parent
widget will always be the text widget, and that focus will always be
returned to it. This makes the interface more consistent. As a bonus, a
lot of repetitive cruft is removed from the code, and writing extensions
is made another bit simpler.
History
Date User Action Args
2008-02-09 00:10:22taleinatsetspambayes_score: 0.00544071 -> 0.0054407106
recipients: + taleinat, kbk
2008-02-09 00:10:21taleinatsetspambayes_score: 0.00544071 -> 0.00544071
messageid: <1202515821.86.0.159216664847.issue2053@psf.upfronthosting.co.za>
2008-02-09 00:10:20taleinatlinkissue2053 messages
2008-02-09 00:10:19taleinatcreate