• Could not connect to Twitter

Exercise and Solution 2 – Adding the About box and using HTML in wxPython

The second exercise (with solution) in the wxPython Image Viewer tutorial gets you to use the HtmlWindow in a custom Dialog to add an About box to the Help menu.

In Exercise – Add an HTML About Dialog to the Help Menu I show you the basic code for an inherited wx Dialog along with the necessary steps to add an About menu item. I give you the necessary hints and then you’re all set to read some of the linked help pages to figure out how to solve the exercise.

In Worked solution – HTML About Dialog I walk you through the complete solution and show how we build up to having a working, HTML-based About box.

Previously we’ve covered memory-leaks, Images and StaticBitmaps, StatusBars and FileDialogs in this wxPython tutorial. This series has everything a new wxPython programmer needs to learn the basics of writing their own wx application. The final two episodes (on adding a Splash screen) will be published this coming week.

This is one of our subscriber-only tutorials, these build upon our free wxPython tutorials which live with our 188 Python tutorials. The source code for this episode is freely available (they all are) further down the video’s page.

Club Members get access to 6+ hours of Python tutorials, exercises and walk-throughs with new episodes every week. You can test your knowledge of Python and keep your skills up-to-date through our Club.

Please share:
  • DZone
  • del.icio.us
  • Reddit
  • Furl
  • Ma.gnolia
  • email
  • StumbleUpon
  • Technorati
  • TwitThis
  • Slashdot
If you enjoyed this post, make sure you subscribe to my RSS feed!

Related posts:

  1. Solution 1 – Walk-through of adding the Mirror Image wxPython function
  2. Exercise 1 for the wxPython Image Viewer – adding a Mirror function
  3. Build a wxPython Image Viewer
  4. Building a wxPython Image Viewer – 8th episode
  5. Menus and Binding for wxPython Image Viewer

Comments are closed.