diff options
Diffstat (limited to 'plugins/rfid/device.py')
-rw-r--r-- | plugins/rfid/device.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/rfid/device.py b/plugins/rfid/device.py index 04a82b2..962a20f 100644 --- a/plugins/rfid/device.py +++ b/plugins/rfid/device.py @@ -1,6 +1,6 @@ -import gobject +from util.gtkcompat import GObject -class RFIDDevice(gobject.GObject): +class RFIDDevice(GObject.GObject): """ Ancestor class for every supported device. The main class for the device driver must be called "RFIDReader". @@ -10,10 +10,10 @@ class RFIDDevice(gobject.GObject): # signal "disconnected" has to be emitted when the device is # unplugged or an error has been detected. __gsignals__ = { - 'tag-read': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, - (gobject.TYPE_STRING,)), - 'disconnected': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, - (gobject.TYPE_STRING,)) + 'tag-read': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, + (GObject.TYPE_STRING,)), + 'disconnected': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, + (GObject.TYPE_STRING,)) } def __init__(self): """ |