ok

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/pyudev/
Upload File :
Current File : //usr/lib/python2.7/site-packages/pyudev/pyqt4.pyo

�
��:Oc@`s�dZddlmZmZmZmZddlmZmZm	Z	ddl
mZddlm
Z
deefd��YZdS(	u�
    pyudev.pyqt4
    ============

    Provide :class:`~pyudev.pyqt4.QUDevMonitorObserver` to integrate a
    :class:`~pyudev.Monitor` into the Qt event loop in applications using the
    PyQt4_ binding to Qt.

    To use this module, :mod:`PyQt4.QtCore` from PyQt4_ must be available.

    .. _PyQt4: http://riverbankcomputing.co.uk/software/pyqt/intro

    .. moduleauthor::  Sebastian Wiesner  <lunaryorn@googlemail.com>
i(tprint_functiontdivisiontunicode_literalstabsolute_import(tQSocketNotifiertQObjectt
pyqtSignal(tQUDevMonitorObserverMixin(tDevicetQUDevMonitorObservercB`sYeZdZeee�Zee�Zee�Zee�Z	ee�Z
dd�ZRS(u
    Observe a :class:`~pyudev.Monitor` and emit Qt signals upon device
    events:

    >>> context = pyudev.Context()
    >>> monitor = pyudev.Monitor.from_netlink(context)
    >>> monitor.filter_by(subsystem='input')
    >>> observer = pyudev.pyqt4.QUDevMonitorObserver(monitor)
    >>> def device_connected(device):
    ...     print('{0!r} added'.format(device))
    >>> observer.deviceAdded.connect(device_connected)
    >>> monitor.start()

    This class is a child of :class:`~PyQt4.QtCore.QObject`.
    cC`s$tj||�|j|t�dS(u
        Observe the given ``monitor`` (a :class:`~pyudev.Monitor`):

        ``parent`` is the parent :class:`~PyQt4.QtCore.QObject` of this
        object.  It is passed unchanged to the inherited constructor of
        :class:`~PyQt4.QtCore.QObject`.
        N(Rt__init__t_setup_notifierR(tselftmonitortparent((s0/usr/lib/python2.7/site-packages/pyudev/pyqt4.pyR
GsN(
t__name__t
__module__t__doc__RtunicodeRtdeviceEventtdeviceAddedt
deviceRemovedt
deviceChangedtdeviceMovedtNoneR
(((s0/usr/lib/python2.7/site-packages/pyudev/pyqt4.pyR	+sN(Rt
__future__RRRRtPyQt4.QtCoreRRRtpyudev._qt_baseRtpyudev.coreRR	(((s0/usr/lib/python2.7/site-packages/pyudev/pyqt4.pyt<module>s
"

Zerion Mini Shell 1.0