Wednesday, July 27, 2022

Lesson 13

 this is a continuation of using the filedialog package, here to

save a file. Tje basic set-up requires us to specify the type of

fi;e we want, and then writing to file. Otherwise, nothing happens...


                                                                       


                                                                         


the second possibility is specifying an initial directory, here that of the project.

Sure enough, tapping save takes us to this directory. And the file gets added

to the project.


                                                                    



f
Finally, if we save a project file first, we can write to it -or alter it - from the

console.
                                                                                



Finally, should we make a mistake and exit our save box without saving, we need

the 'file none' code to avoid unleashing an exception...

                                                        





No comments: