More work on the new home page.

Remove obsolete import.
This commit is contained in:
Marco Pesenti Gritti
2006-07-24 15:11:14 +02:00
parent 1acd82599a
commit d2f76cc41d
9 changed files with 71 additions and 26 deletions
@@ -2,9 +2,10 @@ import gtk
from sugar.scene.Stage import Stage
class SceneView(gtk.DrawingArea):
class StageView(gtk.Fixed):
def __init__(self, stage):
gtk.DrawingArea.__init__(self)
gtk.Fixed.__init__(self)
self.set_has_window(True)
self._stage = stage
self._stage.connect('changed', self.__stage_changed_cb)
+1 -1
View File
@@ -15,7 +15,7 @@ class Transformation:
return (translated_x, translated_y)
def compose(self, transf):
composed = copy.copy(transf)
composed = copy.copy(self)
composed._translation_x += transf._translation_x
composed._translation_y += transf._translation_y
return composed