This object is repsonsible for managing the life cycle of the application process.
To do so, it decides whether to dispatch a command to an already running zim process or to handle it in the current process. For gtk based commands it keeps track of the toplevel objects for re-use and to be able to end the process when no toplevel objects are left.
| Method | __init__ |
Undocumented |
| Method | add_window |
Undocumented |
| Method | get_mainwindow |
Returns an existing MainWindow for notebook or None |
| Method | present |
Present notebook and page in a mainwindow, may not return for standalone processes. |
| Method | remove_window |
Undocumented |
| Method | run |
No summary |
| Property | notebooks |
Undocumented |
| Property | toplevels |
Undocumented |
| Method | _daemonize |
Undocumented |
| Method | _handle_incoming |
Undocumented |
| Method | _log_start |
Undocumented |
| Method | _on_destroy_window |
Undocumented |
| Method | _run_cmd |
Undocumented |
| Method | _run_main_loop |
Undocumented |
| Method | _setup_signal_handling |
Undocumented |
| Method | _spawn_standalone |
Undocumented |
| Method | _try_dispatch |
Undocumented |
| Instance Variable | _log_started |
Undocumented |
| Instance Variable | _running |
Undocumented |
| Instance Variable | _standalone |
Undocumented |
| Instance Variable | _windows |
Undocumented |
| Parameters | |
| *args | commandline arguments |
| **kwargs | optional arguments for build_command |