[wxPython] find and wxTextCtrl

Is it possible to have the selection appear in a wxTextCtrl even if the
wxTextCtrl doesn't have the current focus? Perhaps there is an alternative
selection attribute suched as a dotted outline or something that would
continue to be displayed when the control loses focus?

I'm adding a simple case-insensitive find example to PythonCard. Here's the
code (text is essentially GetText()).

    def on_doFind_command(self, target, event):
        searchText = self.components.fldFind.text.lower()
        fieldText = self.components.field1.text.lower()
        offset = fieldText.find(searchText)
        if offset != -1:
            # find apparently doesn't count newlines in its total
            offset += fieldText.count('\n', 0, offset)
            self.components.field1.setSelection(offset, offset +
len(searchText))

I'm retrieving the text from an underlying wxTextCtrl which is sitting on a
wxPanel. The selection is made, but you can't see the selection until the
wxTextCtrl gains focus.

Also, I noticed that find doesn't count the newlines in the string when it
returns a result, which seems quite bizarre.

Anyone got a good Find/Replace example using wxPython that keeps the
Find/Replace dialog on screen and changes selection under the dialog?

ka