From 1ae90721c50fad91d7411f386d5b210ec8f75423 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 02 Oct 2012 20:03:36 +0000 Subject: use GObject --- diff --git a/plugins/rfid/device.py b/plugins/rfid/device.py index 5c671bb..d5d2c26 100644 --- a/plugins/rfid/device.py +++ b/plugins/rfid/device.py @@ -19,7 +19,7 @@ class RFIDDevice(GObject.GObject): """ Initializer. Subclasses must call this method. """ - self.__gobject_init__() + GObject.GObject.__init__(self) def get_present(self): """ diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index 3f1de7a..49000eb 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# from gi.repository import Gtk +from gi.repository import GObject from time import time import os @@ -1239,7 +1239,7 @@ bullets')) [round_int(width), round_int(height), data]])) - gobject.idle_add(self.tw.send_event, event) + GObject.idle_add(self.tw.send_event, event) os.remove(tmp_file) def _prim_save_picture(self, name): -- cgit v0.9.1