[Tutor] How to save and later open text from a wxTextCtrl widget to a text file?
R. Alan Monroe
amonroe at columbus.rr.com
Tue Oct 17 03:39:06 CEST 2006
> I want to make a GUI in which user can write text in a text box and then
> click a button to save it to a text file. I'm using wxPython's TextCtrl
> widget.
> Then later I would want the user to be able to open it back into that
> window.
> Any help appreciated, thank you.
Have you learnt how to open, write, and close files yet? If you can
get that working in a non-gui program, that's a good first step.
Check out:
http://docs.python.org/tut/node9.html#SECTION00920000000000000000
Alan
More information about the Tutor
mailing list