[Tutor] clearing a text document

Alan Gauld alan.gauld at btinternet.com
Thu Aug 30 01:45:08 CEST 2007


"max baseman" <dos.fool at gmail.com> wrote

> quick question how would i clear a text document?

A bit of context? If its a file you just open the file for writing.

If its a list of strings in memory

text = []

will clear it...

If its a GUI text widget it will depend on which framework you are 
using.

Alan G 




More information about the Tutor mailing list