detecting a position change in wxSTC

I use yellowbrain.com for the documentation on the wxSTC, however it
appears that it's inconsistent at this juncture. I need to know when
the caret position has changed, and yellowbrain indicated that an
EVT_STC_POSCHANGED event is generated when this happens.

However when I try to bind it an error is thrown, saying that no such
event exists. So I went into the interactive terminal, imported the
stc module, and dir()'ed it, and sure enough I couldn't find it or
anything similar.

So, how does one go about detecting when the current position changes?
(I'm running wxPython 2.6.0.1)

···

--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/

Daniel Bickett wrote:

I use yellowbrain.com for the documentation on the wxSTC, however it
appears that it's inconsistent at this juncture. I need to know when
the caret position has changed, and yellowbrain indicated that an
EVT_STC_POSCHANGED event is generated when this happens.

However when I try to bind it an error is thrown, saying that no such
event exists. So I went into the interactive terminal, imported the
stc module, and dir()'ed it, and sure enough I couldn't find it or
anything similar.

So, how does one go about detecting when the current position changes?
(I'm running wxPython 2.6.0.1)

the EVT_STC_POSCHANGED was superseded by the EVT_STC_UPDATEUI event. It is sent for more than just position changes, and is intended to be used to update any container elemets that depend on the state of the the document view.

···

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