How do I commit changes to a text file on button press?

Posted by boywithaxe on Ask Ubuntu See other posts from Ask Ubuntu or by boywithaxe
Published on 2012-06-22T12:50:55Z Indexed on 2012/06/24 3:24 UTC
Read the original article Hit count: 280

I've written a small app that creates a GUI for setting up uShare. Currently it depends heavily on the 'w' (write) and 'a' (append) functions to generate/edit ushare.conf file. But I've been trying to find a way for the app to store all the changes until a save button is pressed, and only then committing them to the actual file. I think that would be the best way of getting around having the user press enter every time they change any field (and indeed allow for GtkCheckButton).

© Ask Ubuntu or respective owner

Related posts about python

Related posts about application-development