Did I find the right examples for you? yes no

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

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

src/p/y/pyscreenshot-0.3.2/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-0.9.1/enaml/qt/__init__.py   enaml(Download)
if not QT_API:
    try:
        import PyQt4
        prepare_pyqt()
        QT_API = os.environ['QT_API'] = 'pyqt'

src/p/y/pyenergy-0.1rc7/src/pyenergy/tools.py   pyenergy(Download)
    elif arguments['interactive']:
        try:
            import PyQt4
        except ImportError:
            print "Error: please install PyQt4"

src/p/y/Pymazon-0.9/pymazon/core/settings.py   Pymazon(Download)
def _get_default_toolkit():
    # try qt first, then gtk, if neither, use qt
    try:
        import PyQt4
        toolkit = 'qt4'

src/q/w/QWelcomeWindow-1.2/qwelcomewindow/qt/__init__.py   QWelcomeWindow(Download)
else:
    try:
        import PyQt4
    except ImportError:
        # try pyside

src/a/c/acq4-0.9.2/acq4/pyqtgraph/Qt.py   acq4(Download)
else:
    try:
        import PyQt4
        USE_PYSIDE = False
    except ImportError:

src/p/h/phaseshifts-0.1.2-dev/phaseshifts/gui/MainWindow.py   phaseshifts(Download)
 
# Import Qt modules
import PyQt4
from PyQt4 import QtCore, QtGui, uic
import res_rc  # note this requires compiled resource file res_rc.py

src/g/s/gsdview-HEAD/pkg/qt/__init__.py   gsdview(Download)
 
_prepare_pyqt4()
import PyQt4
 
qt_api = 'pyqt'

src/t/h/thg-mac-2.1.4/setup.py   thg-mac(Download)
        if not(self.force or newer(qrc_file, py_file)):
            return
        import PyQt4
        origpath = os.getenv('PATH')
        path = origpath.split(os.pathsep)
    def qt4_plugins(subdir, *dlls):
        import PyQt4
        pluginsdir = join(os.path.dirname(PyQt4.__file__), 'plugins')
        return (subdir, [join(pluginsdir, subdir, e) for e in dlls])
    _data_files.append(qt4_plugins('imageformats', 'qico4.dll', 'qsvg4.dll'))

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