Added bounding box
This commit is contained in:
parent
53868ae96e
commit
a7ee308b71
|
|
@ -1045,7 +1045,10 @@ class Canvas(Widget):
|
||||||
else:
|
else:
|
||||||
class OSXCanvas (ScrollableView):
|
class OSXCanvas (ScrollableView):
|
||||||
def draw(self, canvas, update_rect):
|
def draw(self, canvas, update_rect):
|
||||||
|
canvas.backcolor = Color("#888888").pygui
|
||||||
canvas.erase_rect(update_rect)
|
canvas.erase_rect(update_rect)
|
||||||
|
canvas.fillcolor = Color("#ffffff").pygui
|
||||||
|
canvas.fill_rect((0,0,WIDTH,HEIGHT))
|
||||||
for i in self.objs:
|
for i in self.objs:
|
||||||
i.draw(canvas)
|
i.draw(canvas)
|
||||||
|
|
||||||
|
|
@ -1974,7 +1977,6 @@ class frame:
|
||||||
obj.draw(cr, self)
|
obj.draw(cr, self)
|
||||||
result = [dodraw(obj, cr) for obj in self.objs]
|
result = [dodraw(obj, cr) for obj in self.objs]
|
||||||
if currentselect:
|
if currentselect:
|
||||||
print "Currentselect:",currentselect
|
|
||||||
cr.gsave()
|
cr.gsave()
|
||||||
cr.newpath()
|
cr.newpath()
|
||||||
cr.pencolor = Colors.rgb(0,0,1)
|
cr.pencolor = Colors.rgb(0,0,1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue