More work on the new home page.
Remove obsolete import.
This commit is contained in:
@@ -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)
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user