Object for handling page saving.
This class implements auto-saving on a timer and tries writing in a background thread to ot block the user interface.
Method | __init__ |
Undocumented |
Method | cancel_autosave |
Cancel a pending autosave |
Method | do_try_save_page |
Undocumented |
Method | queue_autosave |
No summary |
Method | save_page_now |
Save the page in the foregound |
Method | try_save_page |
Try to save the page |
Method | wait_for_store_page_async |
Undocumented |
Instance Variable | get_page_cb |
Undocumented |
Instance Variable | notebook |
Undocumented |
Instance Variable | pageview |
Undocumented |
Instance Variable | timeout |
Undocumented |
Instance Variable | use_thread |
Undocumented |
Method | _assert_can_save_page |
Undocumented |
Instance Variable | _autosave_timer |
Undocumented |
Instance Variable | _error_event |
Undocumented |
Parameters | |
timeout | timeout in seconds |
Save the page in the foregound
Can result in a SavePageErrorDialog
when there is an error while saving a page. If that dialog is cancelled by the user, the page may not be saved after all.
Parameters | |
dialog_timeout | passed on to SavePageErrorDialog |