Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/graphics/hipposcalability.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/graphics/hipposcalability.py')
-rw-r--r--tests/graphics/hipposcalability.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/graphics/hipposcalability.py b/tests/graphics/hipposcalability.py
index df57101..d9a9e0c 100644
--- a/tests/graphics/hipposcalability.py
+++ b/tests/graphics/hipposcalability.py
@@ -1,6 +1,6 @@
-import hippo
-import gtk
-import gobject
+from gi.repository import Hippo
+from gi.repository import Gtk
+from gi.repository import GObject
from sugar3.graphics.icon import CanvasIcon
from sugar3.graphics.roundbox import CanvasRoundBox
@@ -9,14 +9,14 @@ import common
test = common.Test()
-canvas = hippo.Canvas()
-test.pack_start(canvas)
+canvas = Hippo.Canvas()
+test.pack_start(canvas, True, True, 0)
canvas.show()
-scrollbars = hippo.CanvasScrollbars()
+scrollbars = Hippo.CanvasScrollbars()
canvas.set_root(scrollbars)
-box = hippo.CanvasBox(padding=10, spacing=10)
+box = Hippo.CanvasBox(padding=10, spacing=10)
scrollbars.set_root(box)
@@ -24,8 +24,8 @@ def idle_cb():
global countdown
for i in range(0, 100):
- entry = hippo.CanvasBox(border=2, border_color=0x000000ff,
- orientation=hippo.ORIENTATION_HORIZONTAL,
+ entry = Hippo.CanvasBox(border=2, border_color=0x000000ff,
+ orientation=Hippo.Orientation.HORIZONTAL,
padding=10, spacing=10)
for j in range(0, 3):
@@ -33,7 +33,7 @@ def idle_cb():
entry.append(icon)
for j in range(0, 2):
- text = hippo.CanvasText(text='Text %s %s' % (countdown, j))
+ text = Hippo.CanvasText(text='Text %s %s' % (countdown, j))
entry.append(text)
box.append(entry)
@@ -43,7 +43,7 @@ def idle_cb():
return countdown > 0
countdown = 1000
-gobject.idle_add(idle_cb)
+GObject.idle_add(idle_cb)
test.show()