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 terry.reedy
Date 2017-06-25.05:50:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498369820.44.0.770357079807.issue30751@psf.upfronthosting.co.za>
In-reply-to
Content
One of the features of query.Query boxes is that error messages are displayed in the box (in red) rather than in a separate tkinter.messagebox error box (showerror).  This issue is about copying the idea and implementation to config_key.GetKeysDialog.

To make testing of patched methods easier, #6739 is adding a trivial showerror method (= tkinter.messagebox.showerror).  This issue will replace it with Query.showerror

    def showerror(self, message, widget=None):
        #self.bell(displayof=self)
        (widget or self.entry_error)['text'] = 'ERROR: ' + message

and add something like

        self.entry_error = Label(frame, text=' ', foreground='red',
                                 font=self.error_font)

just above the exit buttons.

This issue should probably add subtests for the ValidationTests.  Message test and line break when needed will be adjusted by visual checks.
History
Date User Action Args
2017-06-25 05:50:20terry.reedysetrecipients: + terry.reedy
2017-06-25 05:50:20terry.reedysetmessageid: <1498369820.44.0.770357079807.issue30751@psf.upfronthosting.co.za>
2017-06-25 05:50:20terry.reedylinkissue30751 messages
2017-06-25 05:50:19terry.reedycreate