goocanvas.Image — An Image item.
|
goocanvas.Image
represents an image item. It is a subclass of
goocanvas.ItemSimple
and so inherits all of the style properties such as "operator" and "pointer-events".
It also implements the goocanvas.Item
interface, so you can use the goocanvas.Item
functions such as goocanvas.Item.raise_()
and goocanvas.Item.rotate()
To respond to events such as mouse clicks on the image you must connect to the signal handlers of the corresponding
goocanvas.ImageView
object.
(See goocanvas.CanvasView.get_item_view()
and goocanvas.CanvasView
signal
"item-view-created")
goocanvas.Image(properties
=None)
properties : | A comma separated list of properties. |
Returns: | A new
goocanvas.Image
|
Creates a new canvas image item.
Here's an example showing how to create an image at (100.0, 100.0), using the given pixbuf at its natural width and height:
image = goocanvas.Image(pixbuf=pixbuf, x=100, y=100)