Debian Codegraph @

doc/api/pyudev.pyqt5.rst

raw
1 :mod:`pyudev.pyqt5` – PyQt5_ integration
2 ========================================
3
4 .. automodule:: pyudev.pyqt5
5 :platform: Linux
6 :synopsis: PyQt5 integration
7
8 .. autoclass:: MonitorObserver
9
10 .. automethod:: __init__
11
12 .. attribute:: monitor
13
14 The :class:`~pyudev.Monitor` observed by this object.
15
16 .. attribute:: notifier
17
18 The underlying :class:`QtCore.QSocketNotifier` used to watch the
19 :attr:`monitor`.
20
21 .. autoattribute:: enabled
22
23 .. rubric:: Signals
24
25 This class emits the following Qt signal:
26
27 .. method:: deviceEvent(device)
28
29 Emitted upon any device event.
30
31 ``device`` is the :class:`~pyudev.Device` object describing the device.
32
33 Use :attr:`~pyudev.Device.action` to get the type of event.
34
35
36
37 .. _PyQt5: http://riverbankcomputing.co.uk/software/pyqt/intro