Debian Codegraph @

src/pyudev/pyqt4.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2010, 2011, 2012, 2013 Sebastian Wiesner <[email protected]>
3
4 # This library is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU Lesser General Public License as published by the
6 # Free Software Foundation; either version 2.1 of the License, or (at your
7 # option) any later version.
8
9 # This library is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
12 # for more details.
13
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with this library; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
18 """
19 pyudev.pyqt4
20 ============
21
22 PyQt4 integration.
23
24 :class:`MonitorObserver` integrates device monitoring into the PyQt4\\_
25 mainloop by turning device events into Qt signals.
26
27 :mod:`PyQt4.QtCore` from PyQt4\\_ must be available when importing this
28 module.
29
30 .. _PyQt4: http://riverbankcomputing.co.uk/software/pyqt/intro
31
32 .. moduleauthor:: Sebastian Wiesner <[email protected]>
33 """
34
35 # isort: THIRDPARTY
36 from PyQt4 import QtCore # pylint: disable=import-error
37
38 from ._qt_base import MonitorObserverGenerator, QUDevMonitorObserverGenerator
39
40 # pylint: disable=invalid-name
41 MonitorObserver = MonitorObserverGenerator.make_monitor_observer(
42 QtCore.QObject, QtCore.pyqtSignal, QtCore.QSocketNotifier
43 )
44 """
45 .. deprecated:: 0.17
46 Will be removed in 1.0. Use :class:`MonitorObserver` instead.
47 """
48 QUDevMonitorObserver = QUDevMonitorObserverGenerator.make_monitor_observer(
49 QtCore.QObject, QtCore.pyqtSignal, QtCore.QSocketNotifier
50 )