Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorKshitij Kumar <kshitijakumar@gmail.com>2013-01-14 18:01:35 (GMT)
committer Kshitij Kumar <kshitijakumar@gmail.com>2013-01-14 18:01:35 (GMT)
commite54795f8862d65e64724833ebb7b63ba003dd4fc (patch)
tree59f0c5d2c316f1e2f3f90817013042cd031bd704 /model.py
parent15218740927681efd27b52e576a35d2b45973cde (diff)
gtk3 changesHEADmaster
Diffstat (limited to 'model.py')
-rw-r--r--model.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/model.py b/model.py
index 2567ed2..b8afacd 100644
--- a/model.py
+++ b/model.py
@@ -20,33 +20,33 @@ from os import environ, makedirs, chmod
from os.path import join, basename, isdir, split, normpath, exists
import logging
import random
-import gobject
+from gi.repository import GObject
import zipfile
import tempfile
-from sugar.activity.activity import get_bundle_path, get_activity_root
+from sugar3.activity.activity import get_bundle_path, get_activity_root
_logger = logging.getLogger('model')
DEFAULT_FONT = 'Sans'
-class Pair(gobject.GObject):
+class Pair(GObject.GObject):
__gproperties__ = {
- 'aimg': (str, None, None, None, gobject.PARAM_READWRITE),
- 'asnd': (str, None, None, None, gobject.PARAM_READWRITE),
- 'achar': (str, None, None, None, gobject.PARAM_READWRITE),
- 'bimg': (str, None, None, None, gobject.PARAM_READWRITE),
- 'bsnd': (str, None, None, None, gobject.PARAM_READWRITE),
- 'bchar': (str, None, None, None, gobject.PARAM_READWRITE),
- 'aspeak': (str, None, None, None, gobject.PARAM_READWRITE),
- 'bspeak': (str, None, None, None, gobject.PARAM_READWRITE),
- 'color': (gobject.TYPE_INT, 'Base', 'Base', 0, 10, 0, \
- gobject.PARAM_READWRITE)
+ 'aimg': (str, None, None, None, GObject.PARAM_READWRITE),
+ 'asnd': (str, None, None, None, GObject.PARAM_READWRITE),
+ 'achar': (str, None, None, None, GObject.PARAM_READWRITE),
+ 'bimg': (str, None, None, None, GObject.PARAM_READWRITE),
+ 'bsnd': (str, None, None, None, GObject.PARAM_READWRITE),
+ 'bchar': (str, None, None, None, GObject.PARAM_READWRITE),
+ 'aspeak': (str, None, None, None, GObject.PARAM_READWRITE),
+ 'bspeak': (str, None, None, None, GObject.PARAM_READWRITE),
+ 'color': (GObject.TYPE_INT, 'Base', 'Base', 0, 10, 0, \
+ GObject.PARAM_READWRITE)
}
def __init__(self):
- gobject.GObject.__init__(self)
+ GObject.GObject.__init__(self)
self._properties = {'aimg': None, 'asnd': None, 'achar': None,
'bimg': None, 'bsnd': None, 'bchar': None,
'color': 100, 'aspeak': None, 'bspeak': None}