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:
- Start a new method definition after __init__():
def show_about(self): """Show the about dialog"""
- 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 ...