3.4. Loading, saving, reloading and closing crosswords
Loading a crossword from a file
To load a crossword from a file, go to the
menu, or press the

button on the
, or press .
If you have unsaved changes in your current crossword, a confirmation dialog will appear to let you save these changes first:
Fig. 3.4.1. Save changes dialog
pycrossword supports the following file formats:
-
-
-
JSON files containing a Python list of Word objects: see the API Reference to learn about Word objects; see JSON file description at
https://www.json.org/json-en.html
-
The first three formats (XPF, IPUZ, JSON) can store both the crossword grid and the clues, whereas pattern files naturally contain only the grid structure and words. XPF and IPUZ files can also store
crossword meta-information like publishing date, author, etc.
To save your current crossword, go to the
menu, or press the

button on the
, or press .
If your crossword was loaded from a file as described above, the modified crossword will be written to the same file, using the same format. Otherwise, you will be presented with a dialog as described further in
Exporting the crossword.
|
The action is enabled only when the crossword has been modified. If there are no changes to save, this action will be disabled.
|
If you've done some modifications in your crossword but you'd like to discard them all, you can reload it from the file by selecting the
menu, or pressing the key. All your changes since the last save will be discarded, and the crossword will be reloaded from the file anew.
To close the current crossword, go to the
menu or press or (hotkeys may differ depending on your operating system). This time again the application will
notify you if you have unsaved changes.