[wxPython-users] how to clear the modify flag of PythonSTC ?

Stef Mientki s.mientki at ru.nl
Thu Aug 2 09:22:43 PDT 2007


thanks Cody,
EmptyUndoBuffer did the job.

cheers,
Stef Mientki

Cody Precord wrote:
> 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
>>
>
>
> ---------------------------------------------------------------------
> 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