Did you try also
>
> wx.CallAfter(self.WholeText.SetSTCFocus, True)
>
> as the last thing in your __init__()?
>
> If that does not do it, I'll have to pass :-(.
>
> /Jean Brouwers
Alas, no change.
Charles Hartman
Professor of English, Poet in Residence
http://cherry.conncoll.edu/cohar
http://villex.blogspot.com
Did you try also
wx.CallAfter(self.WholeText.SetSTCFocus, True)
as the last thing in your __init__()?
If that does not do it, I'll have to pass :-(.
/Jean Brouwers
Alas, no change.
Charles Hartman
I know nothing about stc, but this is a general debugging trick that I have
found useful. It may not help, but it is worth doing just to eliminate the
possibility.
Print a 'got focus' message from the various SET_FOCUS events, and see which
ones come up, and in which sequence.
Sometimes in the past I have found that my desired control *is* getting
focus, but then another one is getting focus after that. Then I realise that
I am looking in the wrong place for the error.
My 2c.
Frank Millman