• Could not connect to Twitter

Menus and Binding for wxPython Image Viewer

The fourth episode of the wxPython Image Viewer tutorial – Add Menus, wx Ids, Binding – has just been published. This is one of our subscriber-only Python tutorials which builds upon Kyran’s original free wxPython tutorial.

In this episode we add a MenuBar and Menu items to the skeleton application. Since Menus force us to look at wxPython’s ids we look at ‘-1′, wx.ID_ANY, wx.NewId() and user-defined ids. The source code (shown below the video) shows that we use ‘-1′ as a matter of choice.

We also look at using object.GetId(), Wingware’s Wing IDE for help, binding functions to menu items and self.Destroy() to close the application.

“This is an excellent tutorial screencast. Not only is the presentation very professional and well paced, you’re also a very, very good teacher. I particularly liked how you didn’t dig too deep into the code in this episode, as it would only confuse beginners. At the same time you covered enough to justify an episode.

VERY, VERY good job, I’d say one of the, if not the best tutorial video and series available on ShowMeDo today.” – Lucas

Club ShowMeDo Python tutorials are aimed at new Python programmers and they enable us to support all the free tutorials that we carry. This series was originally announced here.

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. Exercise 1 for the wxPython Image Viewer – adding a Mirror function
  2. Building a wxPython Image Viewer – 8th episode
  3. Build a wxPython Image Viewer
  4. wx.FileDialog and CreateStatusBar for our wx Image Viewer
  5. Solution 1 – Walk-through of adding the Mirror Image wxPython function

Comments are closed.