#!/usr/bin/python

"""A helper to open the help documentation as a standalone dialog.

Tim Sutton, 2016
"""
from __future__ import absolute_import
from .safe.gui.tools.help_dialog import HelpDialog
from .safe.gui.tools.help import definitions_help

from safe.test.utilities import get_qgis_app
QGIS_APP, CANVAS, IFACE, PARENT = get_qgis_app()

dialog = HelpDialog(
    IFACE.mainWindow(),
    definitions_help.definitions_help())
dialog.show()  # non modal
QGIS_APP.exec_()
