Import Frame or Panel

ITC Python wrote:

I have viewed and reviewed my code and I think that my problem is that I do not know how to properly set up a child panel or frame.

If I have code in one file that represents my main application and frame, how do I properly import and launch and subsequently close or destroy a child frame or panel?

Just like you use anything from another module. You import it and access the stuff in the module using the dot notation.

import othermodule
frame = othermodule.MainFrame(None, title="Hello")
frame.Show()

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!