[wxPython] wxStyledTextControl

The GetText method seems to be returning one character too few from the
wxStyledTextControl under Win 98. If there is no text, the program
crashes. It looks to be a off by one error.

The following code should demonstrate the problem, but I haven't
actually run this code:

ed = wxStyledTextCtrl(parent, id)

ed.SetText("Text")

text = ed.GetText()

text should be "Text" but comes up "Tex"

Thanks. Found it.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com

wxPython has moved Check it out!