Tony Cappellini wrote:
I want to add the Image Browser (under More Dialogs in the wxDemos) to
my program, but want the browser to
be embedded in the Frame of my program, instead of popping up the
image browser as a separate window.What do I need to do to make this work?
1. Look at the source code tab in the demo
2. Notice that it is importing wx.lib.imagebrowser
3. Load wx/lib/imagebrowser.py into your text editor and read the code
4. Notice that all of the functionality you want is in the ImageDialog class and can't be used separately the way the code is organized currently.
5. Refactor the module such that the contents and functionality of the dialog is moved to a new class derived from wx.Panel, and make the ImageDialog class use that panel.
6. Do your part to help out the open source community by submitting a patch with your changes to the project's patch tracker.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!