diff options
-rw-r--r-- | plugins/rfid/device.py | 2 | ||||
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 4 |
2 files changed, 3 insertions, 3 deletions
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): |