Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/scene/PixbufActor.py
blob: 00ed5871388bc77c246cfa08857bf81988f77c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import gtk

from sugar.scene.Actor import Actor

class PixbufActor(Actor):
	def __init__(self, pixbuf):
		Actor.__init__(self)

		self._pixbuf = pixbuf

	def render(self, drawable):
		gc = gtk.gdk.GC(drawable)
		drawable.draw_pixbuf(gc, self._pixbuf, 0, 0, self._x, self._y)