Need advice on more complex FindReplaceDialog

Hi,

I’d like to create a composite widget, like below:

att467c.jpg

The widget is to get a string in the “Find what:” TextEntry line, where the “From row:”, “Look in:”, and “Match:” would be Choice widgets,
and the “Match case” would be a checkbox.

I thought I could take the FindReplaceDialog.py (from wx’s demos) and expand it, but couldn’t figure out how to do that.
(for instance, if I choose the wx.FR_NOUPDOWN, it does not eliminate the changing the search direction choice, just greys it out).

What would you suggest be appropriate widget to base this composite widget on ?

Thanks,

Ron.

Barak, Ron wrote:

Hi,
I'd like to create a composite widget, like below:

and the "Match case" would be a checkbox.
I thought I could take the FindReplaceDialog.py (from wx's demos) and expand it, but couldn't figure out how to do that.
(for instance, if I choose the wx.FR_NOUPDOWN, it does not eliminate the changing the search direction choice, just greys it out).
What would you suggest be appropriate widget to base this composite widget on ?
Thanks,
Ron.

I'm not sure what you're talking about. That demo doesn't seem to even have a "search direction" option to begin with. If you wanted to add one, then it shouldn't be that hard. Just add a radio button or two.

If I was doing this, I would have probably just done the UI work myself from scratch or based it on what was in the demo. Getting the UI right shouldn't be too hard...it's almost always the logic on the back end that gets complicated. Fortunately, there are lots of search algorithms out there...

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org

Barak, Ron wrote:

What would you suggest be appropriate widget to base this composite widget on ?

The wx.FindReplaceDialog is a native dialog on most platforms, so if you want something different you'll need to implement it yourself by deriving a class from wx.Dialog.

···

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