Kevin Walzer wrote:
The line "panel = MyPanel(self)" in class MyFrame seems to assign MyPanel as a child of MyFrame. Commenting out that line results in the frame being drawn, but not the panel. However, this mechanism seems opaque to me: how does MyPanel inherit from MyFrame? Or is the mechanism completely different, something I'm missing?
Don't think of it as inheritance, but containment. The frame is the container of the panel, and in turn the panel contains the button.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!