Showing an About dialog

We've already seen how to use messagebox to create error dialogs. Now, we can apply that knowledge to create our About box by performing the following steps:

  1. Start a new method definition after __init__():
    def show_about(self):
        """Show the about dialog"""
  1. The About dialog can show any information you feel is relevant, including your contact information, support information, version information, or even the entire README file. In our case, we'll keep it fairly short. Let's specify the message header text and detail body text:
        about_message = 'ABQ Data Entry'
        about_detail = ('by Alan D Moore\n'
            'For assistance please contact the author.')

We're just using the application name for the header, and a short message ...

Get Python GUI Programming with Tkinter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.