[wxPython-users] how to clear the modify flag of PythonSTC ?
Cody Precord
codyprecord at gmail.com
Thu Aug 2 08:28:25 PDT 2007
A call to wx.stc.StyledTextCtrl.SetSavePoint or EmptyUndoBuffer
should clear the modify flag. If you have just loaded text into an
stc and not done any other operations a single call to Undo should
clear the document and the modify flag.
cody
On Aug 2, 2007, at 9:17 AM, Stef Mientki wrote:
> hello,
>
> If I want to clear the contents of an PythonSTC,
> (btw which was loaded and not changed, so the modify flag is False),
> I use PythonSTC.ClearAll(),
> but this sets the modify flag,
> which give me problems later on in my program.
>
> Is there a way to clear the modify flag,
> or another way to clear the contents of a PythonSTC ?
>
> thanks,
> Stef Mientki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-
> help at lists.wxwidgets.org
>
More information about the wxpython-users
mailing list