[Tkinter-discuss] Taking a Text() widget and saving it to a .txt file

Alexnb alexnbryan at gmail.com
Fri Jul 4 01:16:23 CEST 2008


I don't really know if this is possible, but it seems like there should be an
easy way. If I have a text widget:

text = Text(parent)

and I want to take what is in there and save it has a text file. How would I
go about doing this. Also, if it matters, I would like to keep it in the
same format as the textbox. 
-- 
View this message in context: http://www.nabble.com/Taking-a-Text%28%29-widget-and-saving-it-to-a-.txt-file-tp18269937p18269937.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.



More information about the Tkinter-discuss mailing list