Debian Codegraph @

doc/api/pyudev.wx.rst

raw
1 :mod:`pyudev.wx` – wxPython_ integration
2 =====================================================
3
4 .. automodule:: pyudev.wx
5 :platform: Linux
6 :synopsis: wxWidgets integration
7
8
9 .. autoclass:: MonitorObserver
10
11 .. attribute:: monitor
12
13 The :class:`~pyudev.Monitor` observed by this object.
14
15 .. autoattribute:: enabled
16
17 .. rubric:: Events
18
19 :class:`MonitorObserver` posts the following event:
20
21 .. data:: EVT_DEVICE_EVENT
22
23 Emitted upon any device event. Receivers get a :class:`DeviceEvent` object
24 as argument.
25
26 .. class:: DeviceEvent
27
28 Argument object for :data:`EVT_DEVICE_EVENT`.
29
30 .. attribute:: device
31
32 The :class:`~pyudev.Device` object that caused this event.
33
34 Use :attr:`~pyudev.Device.action` to get the type of event.
35
36 .. rubric:: Deprecated members
37
38 .. attribute:: action
39
40 A unicode string containing the action name.
41
42 .. deprecated:: 0.17
43 Will be removed in 1.0. Use :attr:`~pyudev.Device.action` instead.
44
45
46 Deprecated API
47 --------------
48
49 .. autoclass:: WxUDevMonitorObserver
50
51 .. attribute:: monitor
52
53 The :class:`~pyudev.Monitor` observed by this object.
54
55 .. autoattribute:: enabled
56
57
58 .. rubric:: Events
59
60 :class:`WxUDevMonitorObserver` posts the following events in addition to
61 :data:`EVT_DEVICE_EVENT`:
62
63 .. data:: EVT_DEVICE_ADDED
64
65 Emitted if a :class:`~pyudev.Device` is added (e.g a USB device was
66 plugged). Receivers get a :class:`DeviceAddedEvent` object as argument.
67
68 .. deprecated:: 0.17
69 Will be removed in 1.0.
70
71 .. data:: EVT_DEVICE_REMOVED
72
73 Emitted if a :class:`~pyudev.Device` is removed (e.g. a USB device was
74 unplugged). Receivers get a :class:`DeviceRemovedEvent` object as argument.
75
76 .. deprecated:: 0.17
77 Will be removed in 1.0.
78
79 .. data:: EVT_DEVICE_CHANGED
80
81 Emitted if a :class:`~pyudev.Device` was somehow changed (e.g. a change of a
82 property). Receivers get a :class:`DeviceChangedEvent` object as argument.
83
84 .. deprecated:: 0.17
85 Will be removed in 1.0.
86
87 .. data:: EVT_DEVICE_MOVED
88
89 Emitted if a :class:`~pyudev.Device` was renamed, moved or re-parented.
90 Receivers get a :class:`DeviceMovedEvent` object as argument.
91
92 .. class:: DeviceAddedEvent
93 DeviceRemovedEvent
94 DeviceChangedEvent
95 DeviceMovedEvent
96
97 Argument objects for :data:`EVT_DEVICE_ADDED`, :data:`EVT_DEVICE_REMOVED`,
98 :data:`EVT_DEVICE_CHANGED` and :data:`EVT_DEVICE_MOVED`.
99
100 .. deprecated:: 0.17
101 Will be removed in 1.0.
102
103 .. attribute:: device
104
105 The :class:`~pyudev.Device` object that caused this event.