Did I find the right examples for you? yes no

All Samples(69)  |  Call(0)  |  Derive(0)  |  Import(69)

src/p/a/pandas-HEAD/pandas/util/clipboard.py   pandas(Download)
            except ImportError:
                try:
                    import PyQt4 as qt4
                    import PyQt4.QtCore
                    import PyQt4.QtGui

src/p/y/pyface-HEAD/pyface/qt/__init__.py   pyface(Download)
        try:
            prepare_pyqt4()
            import PyQt4
            qt_api = 'pyqt'
        except ImportError:

src/p/y/pyscreenshot-HEAD/pyscreenshot/plugins/qtgrabwindow.py   pyscreenshot(Download)
    def __init__(self):
        import PyQt4
        self.PyQt4 = PyQt4
        from PyQt4 import QtGui
        from PyQt4 import Qt

src/e/n/enaml-HEAD/enaml/qt/__init__.py   enaml(Download)
if not QT_API:
    try:
        import PyQt4
        prepare_pyqt()
        QT_API = os.environ['QT_API'] = 'pyqt'

src/c/r/crazyflie-clients-python-HEAD/lib/cfclient/cfclient.py   crazyflie-clients-python(Download)
 
    try:
        import PyQt4
    except ImportError:
        logger.critical("No PyQT4 installation found, exiting!")

src/i/p/ipython-py3k-HEAD/IPython/external/qt.py   ipython-py3k(Download)
        try:
            prepare_pyqt4()
            import PyQt4
            QT_API = QT_API_PYQT
        except ImportError:

src/r/i/ricodebug-HEAD/src/lib/formlayout.py   ricodebug(Download)
if os.environ['QT_API'] == 'pyqt':
    try:
        import PyQt4  # analysis:ignore
    except ImportError:
        # Switching to PySide

src/p/y/pyqode.core-HEAD/pyqode/qt/__init__.py   pyqode.core(Download)
    """
    try:
        import PyQt4
    except ImportError:
        # Fatal error, no qt bindings found

src/s/p/spykeutils-HEAD/doc/source/conf.py   spykeutils(Download)
    import neo
    import scipy
    import PyQt4
    import guiqwt
except ImportError:

src/e/n/enki-HEAD/enki/main.py   enki(Download)
 
    try:
        import PyQt4
    except ImportError, ex:
        plain =  'Failed to import Qt4 python bindings:\n' + \

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7  Next