Skip to Content
Python GUI Programming with Tkinter
book

Python GUI Programming with Tkinter

by Alan D. Moore
May 2018
Beginner to intermediate content levelBeginner to intermediate
452 pages
11h 26m
English
Packt Publishing
Content preview from Python GUI Programming with Tkinter

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python GUI Programming with Tkinter - Second Edition

Python GUI Programming with Tkinter - Second Edition

Alan D. Moore

Publisher Resources

ISBN: 9781788835886Supplemental Content