class documentation

class ZimApplication(object): (source)

View In Hierarchy

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
def __init__(self): (source)

Undocumented

def add_window(self, window): (source)

Undocumented

def get_mainwindow(self, notebook, _class=None): (source)
Returns an existing MainWindow for notebook or None
def present(self, notebook, page=None): (source)
Present notebook and page in a mainwindow, may not return for standalone processes.
def remove_window(self, window): (source)

Undocumented

def run(self, *args, **kwargs): (source)
Run a commandline command, either in this process, an existing process, or a new process.
Parameters
*argscommandline arguments
**kwargsoptional arguments for build_command
@property
notebooks = (source)

Undocumented

@property
toplevels = (source)

Undocumented

def _daemonize(self): (source)

Undocumented

def _handle_incoming(self, pwd, *args): (source)

Undocumented

def _log_start(self): (source)

Undocumented

def _on_destroy_window(self, window): (source)

Undocumented

def _run_cmd(self, cmd, args): (source)

Undocumented

def _run_main_loop(self, cmd): (source)

Undocumented

def _setup_signal_handling(self): (source)

Undocumented

def _spawn_standalone(self, args): (source)

Undocumented

def _try_dispatch(self, args, pwd): (source)

Undocumented

_log_started: bool = (source)

Undocumented

_running: bool = (source)

Undocumented

_standalone: bool = (source)

Undocumented

_windows: set = (source)

Undocumented