# Path: objbrowser/qtpy/QtCore.py

# 
# Path: objbrowser/qtpy/QtWidgets.py

# 
# Path: objbrowser/version.py
# DEBUGGING = False
# 
# PROGRAM_NAME = 'objbrowser'


import sys, logging, traceback
from objbrowser.qtpy import QtCore, QtWidgets
from objbrowser.version import DEBUGGING, PROGRAM_NAME
        from IPython.core.getipython import get_ipython
        from IPython import version_info
                from IPython.lib.guisupport import is_event_loop_running_qt4, start_event_loop_qt4
    v2 API, the QT_API environment variable must be set to 'pyqt'.

    This works, unfortunately IPython 4.0.0 contains a bug and raises the
    following ImportError: No module named qt. As a work around you can,
        1: Ignore the ImportError
        2: Import PyQt4 (or PySide) manually. In IPython type: import PyQt4.QtCore
        3: Start the event loop with: %gui qt

    Also IPython 5.0.0 and 5.1.0 contain a bug so it won't work there as well.
    See https://github.com/ipython/ipython/issues/9974. It is expected to be fixed
    in IPython 5.2.0
"""

logger = logging.getLogger(__name__)



def in_ipython():
    """ Returns True if IPython is running, False for the regular Python.
    """
    try:
    except ImportError:
        return False
    else:
        return get_ipython() is not None


def qapp_exists():
    """ Returns true if a QApplicaiotn is already running
    """

# Path: objbrowser/qtpy/QtCore.py

# 
# Path: objbrowser/qtpy/QtWidgets.py

# 
# Path: objbrowser/version.py
# DEBUGGING = False
# 
# PROGRAM_NAME = 'objbrowser'


# Path: objbrowser/app.py
import sys, logging, traceback
from objbrowser.qtpy import QtCore, QtWidgets
from objbrowser.version import DEBUGGING, PROGRAM_NAME
        from IPython.core.getipython import get_ipython
        from IPython import version_info
                from IPython.lib.guisupport import is_event_loop_running_qt4, start_event_loop_qt4

    v2 API, the QT_API environment variable must be set to 'pyqt'.

    This works, unfortunately IPython 4.0.0 contains a bug and raises the
    following ImportError: No module named qt. As a work around you can,
        1: Ignore the ImportError
        2: Import PyQt4 (or PySide) manually. In IPython type: import PyQt4.QtCore
        3: Start the event loop with: %gui qt

    Also IPython 5.0.0 and 5.1.0 contain a bug so it won't work there as well.
    See https://github.com/ipython/ipython/issues/9974. It is expected to be fixed
    in IPython 5.2.0
"""

logger = logging.getLogger(__name__)



def in_ipython():
    """ Returns True if IPython is running, False for the regular Python.
    """
    try:
    except ImportError:
        return False
    else:
        return get_ipython() is not None


def qapp_exists():
    """ Returns true if a QApplicaiotn is already running
    """

    return QtWidgets.QApplication.instance() is not None