diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-10-02 20:03:36 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-10-02 20:03:36 (GMT) |
commit | 1ae90721c50fad91d7411f386d5b210ec8f75423 (patch) | |
tree | a76dfdab214931f4d8575aae0750b502c21dc9d5 | |
parent | 148a613b969b7248ab29c750e79d86fe478a09d0 (diff) |
use GObject
-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): |