© Mike Driscoll 2018
Mike DriscollwxPython Recipeshttps://doi.org/10.1007/978-1-4842-3237-8_6

6. Creating Simple Widgets

Mike Driscoll
(1)
Ankeny, New York, USA
 

Recipe 6-1. Creating an About Box

Problem

When I create an application, I usually want to include an “About” box to let the user know more about the application and me, and to give shout-outs to anyone who may have helped in the creation of my program. One cool feature wxPython provides is a custom AboutBox widget . I think it looks a little odd, so I created my own About box using the HtmlWindow widget. However, I’ll show how to do it both ways in this recipe.

Solution

First, we’ll create a simple application that will allow you to see how to open the dialog via either a button or a menu item. ...

Get wxPython Recipes: A Problem - Solution Approach 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.